Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
languagehacker
· 14y ago · 0 comments
I'd suggest adding hunks instead of committing them so you can review your staging area at the end. It's the same flag; just use 'git add -p' instead of 'git commit -p'.
Comments
[–]
ujeezy
14y ago
And if you'd like to diff what's in the staging area, you can use this command: git diff --cached
[–]
codenapper
14y ago
Thanks, that's really helpful! I just updated the post.