Created
June 25, 2017 02:30
-
-
Save adham90/cc6384ad658d3e7dd65371e5d3d1383f to your computer and use it in GitHub Desktop.
rewrite commit message by id
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git filter-branch -f --msg-filter ' | |
if [ "$GIT_COMMIT" = "ddbe6b0d2561566aa91733c98cce086bdd50bdd5" ]; | |
then | |
echo new message; | |
else | |
cat | |
fi' HEAD |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment