سؤال

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

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top