Live data from Hacker News

How to commit part of file in Git

newbeelearn.com

1–10 of 104 posts

Re: How to commit part of file in Git

#8
post #5
post #3

The only sane way to do this is with a proper IDE. Doing it via the command line is pure masochism.

Why? I use git add -p absolutely all the time, its really simple to learn

Me too, in fact I find it much easier to do with the terminal than a GUI.

Re: How to commit part of file in Git

#9
post #3

The only sane way to do this is with a proper IDE. Doing it via the command line is pure masochism.

It’s perfectly doable in the command line. Utilities like git-gui make it fairly easy to stage and commit chunks or lines. Git plug-ins for vim or eMacs (the article mentions magit) are also quite efficient. You don’t need a bloated IDE for this.
Post reply on HN