Skip to content

Instantly share code, notes, and snippets.

@stefanofiorentino
Created May 6, 2020 13:05
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 stefanofiorentino/4e4bdf7e09c9fffa32b2003a6aaadfdd to your computer and use it in GitHub Desktop.
Save stefanofiorentino/4e4bdf7e09c9fffa32b2003a6aaadfdd to your computer and use it in GitHub Desktop.
Change all signed-off on from..to commits
#!/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"' "$@"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment