rewrite git history with git edit

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


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 ruby.

curl >\
 ~/bin/git-edit && chmod +x ~/bin/git-edit

Remember: Do not use unless you are the only one working on this branch!

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s