2 ms·
`git add -p` splits your changes into logical chunks and lets you choose whether to stage each on.
by trevorcreech 14y ago
`git add -p` splits your changes into logical chunks and lets you choose whether to stage each on.
- __david__ 14y agoIt also lets you edit them (press e on a hunk)! I love that command. And it was clearly inspired by "darcs record". I also use commit-patch[1] quite a lot, it comes with Emacs integration which makes it heavenly (vc-diff then edit the patch to your liking, then commit). [1] http://porkrind.org/commit-patch/ http://porkrind.org/commit-patch/