January 2010
1 post
1 tag
changing git commit messages
Changing your last commit message in a git repository is fairly trivial
git commit --amend -m "some other message"
but what if you’ve made several commits and want to change a message that’s not the last one? An interactive rebase is one way to do this. First find the commit just before the message you want to change
~/Work/repo (master) $ git lg
* 6119426 - (master) third commit (3...