Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
rbonvall
on Jan 20, 2014
|
parent
|
context
|
favorite
| on:
Git add -p
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.
bluetech
on Jan 20, 2014
[–]
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: