SHARE
TWEET

Untitled

a guest Apr 25th, 2019 58 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/bin/sh
  2.  
  3. git filter-branch --env-filter '
  4.  
  5. OLD_EMAIL="YOUR_OLD_EMAIL_HERE"
  6. CORRECT_NAME="YOUR_NEW_NAME_HERE"
  7. CORRECT_EMAIL="YOUR_NEW_EMAIL_HERE"
  8.  
  9. if [ "$GIT_COMMITTER_EMAIL" = "$OLD_EMAIL" ]
  10. then
  11.     export GIT_COMMITTER_NAME="$CORRECT_NAME"
  12.     export GIT_COMMITTER_EMAIL="$CORRECT_EMAIL"
  13. fi
  14. if [ "$GIT_AUTHOR_EMAIL" = "$OLD_EMAIL" ]
  15. then
  16.     export GIT_AUTHOR_NAME="$CORRECT_NAME"
  17.     export GIT_AUTHOR_EMAIL="$CORRECT_EMAIL"
  18. fi
  19. ' --tag-name-filter cat -- --branches --tags
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top