What settings affect user name in Git?
问题 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 来源: