3 ms·
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
by rbonvall 13y ago
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 13y agoAh, 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.