Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $ git config --global user.name "Firstname Lastname"Sets the name of the user for all git instances on the system
- $ git config --global user.email "your_email@youremail.com"
- [core]
- repositoryformatversion = 0
- filemode = false
- bare = false
- logallrefupdates = true
- symlinks = false
- ignorecase = true
- hideDotFiles = dotGitOnly
- [remote "origin"]
- url = git@github.com:freeenergy/my-project.git
- fetch = +refs/heads/*:refs/remotes/origin/*
- [user]
- name = my name
- email = myEmail.com
- [user]
- name = Bob Gilmore
- email = me@mydomain.com
- $ git config user.email
- # you@there.com
- $ git config --global user.email "me@here.com"
- > git config --local -e
- [user]
- name = Anna Kowalska
- email = anna.kowalska@wp.pl
- #!/bin/sh
- git filter-branch --env-filter '
- OLD_EMAIL="your-old-email@example.com"
- CORRECT_NAME="Your Correct Name"
- CORRECT_EMAIL="your-correct-email@example.com"
- if [ "$GIT_COMMITTER_EMAIL" = "$OLD_EMAIL" ]
- then
- export GIT_COMMITTER_NAME="$CORRECT_NAME"
- export GIT_COMMITTER_EMAIL="$CORRECT_EMAIL"
- fi
- if [ "$GIT_AUTHOR_EMAIL" = "$OLD_EMAIL" ]
- then
- export GIT_AUTHOR_NAME="$CORRECT_NAME"
- export GIT_AUTHOR_EMAIL="$CORRECT_EMAIL"
- fi
- ' --tag-name-filter cat -- --branches --tags
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement