How to change the specific string throughout all git message commits?
问题 I want to grep and change specific string throughout all messages that are pushed to Github. Is it possible? How? I know how to change last message bye git commit --amend but I want to change all message of all commits. 回答1: Use git-filter-branch with it's --msg-filter option, e.g.: git filter-branch -f --msg-filter 'sed "s/git-svn.*$//g"' -- --all Note that this will change pretty much all your commit ids in your repo, and so everyone who works on your project will thus need to do a fresh