Skip to content

Instantly share code, notes, and snippets.

@TomLiu
Created October 26, 2013 13:49
Show Gist options
  • Select an option

  • Save TomLiu/7169671 to your computer and use it in GitHub Desktop.

Select an option

Save TomLiu/7169671 to your computer and use it in GitHub Desktop.
change author info for old commits in git
git filter-branch --env-filter 'if [ "$GIT_AUTHOR_EMAIL" = "wrong@email.com" ]; then
GIT_AUTHOR_EMAIL=chenyuan.ly@alibaba-inc.com;
GIT_AUTHOR_NAME="chenyuan.ly";
GIT_COMMITTER_EMAIL=$GIT_AUTHOR_EMAIL;
GIT_COMMITTER_NAME="$GIT_AUTHOR_NAME"; fi' -- --all
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment