Created
May 6, 2020 13:05
-
-
Save stefanofiorentino/4e4bdf7e09c9fffa32b2003a6aaadfdd to your computer and use it in GitHub Desktop.
Revisions
-
stefanofiorentino created this gist
May 6, 2020 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,9 @@ #!/bin/bash OLDSIGNED="stefano.fiorentino@home" OLDNAME="Fiorentino Stefano" NEWSIGNED="stefano.fiorentino@work" NEWNAME="Stefano Fiorentino" git filter-branch --msg-filter 'sed "s/'"${OLDSIGNED}"'/'"${NEWSIGNED}"'/g"' "$@" git filter-branch --msg-filter 'sed "s/'"${OLDNAME}"'/'"${NEWNAME}"'/g"' "$@"