Advertisement
Guest User

Untitled

a guest
Mar 13th, 2017
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.25 KB | None | 0 0
  1. $ git config --global user.name "Firstname Lastname"Sets the name of the user for all git instances on the system
  2. $ git config --global user.email "[email protected]"
  3.  
  4. [core]
  5. repositoryformatversion = 0
  6. filemode = false
  7. bare = false
  8. logallrefupdates = true
  9. symlinks = false
  10. ignorecase = true
  11. hideDotFiles = dotGitOnly
  12. [remote "origin"]
  13. url = [email protected]:freeenergy/my-project.git
  14. fetch = +refs/heads/*:refs/remotes/origin/*
  15. [user]
  16. name = my name
  17. email = myEmail.com
  18.  
  19. [user]
  20. name = Bob Gilmore
  21.  
  22. $ git config user.email
  23.  
  24. $ git config --global user.email "[email protected]"
  25.  
  26. > git config --local -e
  27.  
  28. [user]
  29. name = Anna Kowalska
  30.  
  31. #!/bin/sh
  32.  
  33. git filter-branch --env-filter '
  34. OLD_EMAIL="[email protected]"
  35. CORRECT_NAME="Your Correct Name"
  36. CORRECT_EMAIL="[email protected]"
  37. if [ "$GIT_COMMITTER_EMAIL" = "$OLD_EMAIL" ]
  38. then
  39. export GIT_COMMITTER_NAME="$CORRECT_NAME"
  40. export GIT_COMMITTER_EMAIL="$CORRECT_EMAIL"
  41. fi
  42. if [ "$GIT_AUTHOR_EMAIL" = "$OLD_EMAIL" ]
  43. then
  44. export GIT_AUTHOR_NAME="$CORRECT_NAME"
  45. export GIT_AUTHOR_EMAIL="$CORRECT_EMAIL"
  46. fi
  47. ' --tag-name-filter cat -- --branches --tags
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement