转载自: https://stackoverflow.com/questions/42167345/git-set-local-user-name-and-user-email-different-for-each-repo

For just one repo:

git config user.name "Your Name Here"
git config user.email your@email.com

For (global) default email (which is configured in your ~/.gitconfig):

git config --global user.name "Your Name Here"
git config --global user.email your@email.com
Logo

旨在为数千万中国开发者提供一个无缝且高效的云端环境,以支持学习、使用和贡献开源项目。

更多推荐