What settings affect user name in Git?

我怕爱的太早我们不能终老 提交于 2019-12-12 01:35:15

问题


I wanted to change the user name in my git configurations, but when I think I change the user name or email (in .gitconfig file) it restores back to the previous one. I have also tried doing it through git config --global user.name <user-name> but it "restores" back as well.

Where else should I look? What are the (other) ways to tune my user name in Git?


回答1:


git config user.name <user-name> takes precedence i believe, you can find the information in your repository $REPO_DIR/.git/config



来源:https://stackoverflow.com/questions/4781863/what-settings-affect-user-name-in-git

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!