Advertisement
Guest User

Untitled

a guest
Jun 26th, 2019
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. #!/bin/sh
  2.  
  3. git filter-branch -f --env-filter '
  4. OLD_EMAIL="your-old-email@example.com"
  5. CORRECT_NAME="Your Correct Name"
  6. CORRECT_EMAIL="your-correct-email@example.com"
  7. if [ "$GIT_COMMITTER_EMAIL" = "$OLD_EMAIL" ]
  8. then
  9. export GIT_COMMITTER_NAME="$CORRECT_NAME"
  10. export GIT_COMMITTER_EMAIL="$CORRECT_EMAIL"
  11. fi
  12. if [ "$GIT_AUTHOR_EMAIL" = "$OLD_EMAIL" ]
  13. then
  14. export GIT_AUTHOR_NAME="$CORRECT_NAME"
  15. export GIT_AUTHOR_EMAIL="$CORRECT_EMAIL"
  16. fi
  17. ' --tag-name-filter cat -- --branches --tags
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement