HN
Hacker News
Top
New
Best
Ask
Show
Jobs
Comment by ht85 | Hacker News Reader
Parent
Full thread
ht85
·
You can also discard changes that way, e.g.:
git checkout -p -- .
View on HN
johnisgood
·
I will have to read about how to use it, because it shows some hunks on a page, and I do not want to stage all of them, for example.
jeroen
·
When it shows you a hunk that's bigger than you like, you can use 's' to split it into smaller hunks.
johnisgood
·
Thank you!
harry_ord
·
Cherrypick (-p) is wonderful. A command I also like is rebase interactive(-I)
Git rebase -i HEAD~[number of commits]
johnisgood
·
Yeah, I use `git rebase -i HEAD~n` a lot.
Reply on news.ycombinator.com