Skip to content

Instantly share code, notes, and snippets.

@adham90
Created June 25, 2017 02:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save adham90/cc6384ad658d3e7dd65371e5d3d1383f to your computer and use it in GitHub Desktop.
Save adham90/cc6384ad658d3e7dd65371e5d3d1383f to your computer and use it in GitHub Desktop.
rewrite commit message by id
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