Skip to content

Instantly share code, notes, and snippets.

@serge1
Last active August 29, 2015 14:02
Show Gist options
  • Save serge1/49d9e5effe0cdf2fabff to your computer and use it in GitHub Desktop.
Save serge1/49d9e5effe0cdf2fabff to your computer and use it in GitHub Desktop.
A command to change credentials of the whole Git repository
git filter-branch -f --commit-filter 'GIT_COMMITTER_NAME="Serge Lamikhov-Center"; GIT_AUTHOR_NAME="Serge Lamikhov-Center"; GIT_COMMITTER_EMAIL="[email protected]"; GIT_AUTHOR_EMAIL="[email protected]"; git commit-tree "$@";' HEAD
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment