Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I bet these are the features you're not using yet:

    git checkout -p
for discarding hunks from the worktree, and

    git reset HEAD -p
for unstaging hunks from the index.


Ah, the 'git checkout -p' is great. I always did 'git stash -p; git stash drop' for that. Putting this under 'checkout' is completely non-obvious.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: