I’m currently doing a lot of history rewrites to keep my branch clean (tons of changes that I rebase regularly)
So I built git-edit
Usage
git-edit abf1234 ... do some work ... git-edit --amend # amend changes to abf1234 and finish # or if things go south ... git-edit --abort # get me out of here 🙂
Install
Install ruby.
curl https://raw.github.com/grosser/dotfiles/master/bin/git-edit >\ ~/bin/git-edit && chmod +x ~/bin/git-edit
Remember: Do not use unless you are the only one working on this branch!