Skip to content

Instantly share code, notes, and snippets.

@Morabaraba
Created February 25, 2017 18:35
Show Gist options
  • Save Morabaraba/061f92831ad4e8bcff5eb859f5e7e791 to your computer and use it in GitHub Desktop.
Save Morabaraba/061f92831ad4e8bcff5eb859f5e7e791 to your computer and use it in GitHub Desktop.
GIT tricks

change name and surname in all previous commits?

git filter-branch --commit-filter 'if [ "$GIT_AUTHOR_NAME" = "Your Name" ];
  then export GIT_AUTHOR_NAME="Morabaraba May"; export GIT_AUTHOR_EMAIL=TOPS3CR3T;
  fi; git commit-tree "$@"'

http://stackoverflow.com/a/4494037

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment