6 ms·
You can also discard changes that way, e.g.: git checkout -p -- .
by ht85 2y ago
You can also discard changes that way, e.g.:
git checkout -p -- .
- johnisgood 2y agoI 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 2y agoWhen it shows you a hunk that's bigger than you like, you can use 's' to split it into smaller hunks.
- johnisgood 2y agoThank you!
- harry_ord 2y agoCherrypick (-p) is wonderful. A command I also like is rebase interactive(-I) Git rebase -i HEAD~[number of commits]
- johnisgood 2y agoYeah, I use `git rebase -i HEAD~n` a lot.