Iβve used git for ~7 years now. Yesterday I learned two things I wish I knew all along:
- git rebase βautostash stashes and unstashes local changes for you
- git commit -v adds diffs to commit draft so that you can inspect them as you write commit msg
What else am I missing?
Ever try to hand-edit an unstaging hunk? After getting the hang of it for staging hunks and trying and failing everyone for unstaging hunks I have the feeling you just can't. (It's also pretty mind warping to try and understand)
I'll admit that I usually just unstage a hunk, then stash, then do other stuff, then unstash and continue. The idea of editing an unstaging hunk sounds terrifying.