Skip to content

Instantly share code, notes, and snippets.

@dotfold
Created May 9, 2014 00:13
Show Gist options
  • Save dotfold/d80da481aef50ff7b0f6 to your computer and use it in GitHub Desktop.
Save dotfold/d80da481aef50ff7b0f6 to your computer and use it in GitHub Desktop.
overwrite the horrible and unfortunately prevalent "Initial Commit" message
# checkout the root commit
git checkout <sha1-of-root>
# amend the commit
git commit --amend
# rebase all the other commits in master onto the amended root
git rebase --onto HEAD HEAD master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment