Live data from Hacker News

Git add -p: a powerful git feature

johnkary.net

1–10 of 108 posts

Re: Git add -p: a powerful git feature

#3
Yeah, this is a great tip. It's great for a final review prior to actual commit. Often, I'll build my commit message based on my walkthrough at that point. Additionally, you get cleaner diffs because you can skip over goofy stuff like whitespace changes (which you then can destroy after the commit by a quick git checkout HEAD myfilewithwhitespacechangesinit)

Re: Git add -p: a powerful git feature

#8
I Always use -p.

I can't count the number of times I've caught stuff that wasn't supposed to be committed.

Also, site isn't loading for me so maybe this is discussed, but I also like using it to not commit logging / debugging statements without removing or stashing them.

Post reply on HN