Git Github use resources
- Check current repo’s user info
$ git config user.name
$ git config user.email
- Set the current repo’s user info with new info
$ git config user.name "NEW_NAME"
$ git config user.email "NEW_EMAIL"
- Set the repo’s past commit with new user&email
$ git filter-branch -f --env-filter "GIT_AUTHOR_NAME='MIBlue119'; GIT_AUTHOR_EMAIL='[email protected]'; GIT_COMMITTER_NAME='MIBlue119'; GIT_COMMITTER_EMAIL='[email protected]';" HEAD
-
Ref:
-
Push the repo with other account’s github
$ git push https://user_name:[email protected]/repos.git