Can't change git config's user.name, gets reset immediately
问题 If I do: git config --global user.name "My New Name" It works, for a short while. If I do this: cat ~/.gitconfig I can see the proper value in the user.name property. However, as soon as I open a new terminal window or do a git commit, the old name gets reset. I'm using ssh. Is there some cache mechanism? (Note this is not about the GitHub username, but rather about the author name for every commit) 回答1: The FILES section of the git config documentation shows sources of configuration values.