What settings affect user name in Git?
-
23-10-2019 - |
سؤال
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?
المحلول
git config user.name <user-name
>
takes precedence i believe, you can find the information in your repository $REPO_DIR/.git/config
لا تنتمي إلى StackOverflow