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
🙏🙏🙏
Since you've made it this far, sharing this article on your favorite social media network would be highly appreciated 💖! For feedback, please ping me on Twitter.
Published