I committed in git and pushed, during push git is asking my user and password. Now, on github, my computer account user name is showing up. Why?
Specifically, git config --system -l
returns "file not found".
git config --global -l
has no user entry. git config --local -l
has no user entry. Why is the user name not used I supplied during the push operation?
When you push using git, two things happen:
First, you need to get write access to the files of the repository you are pushing to. Usually, this means ssh (not git) asks for your distant username and password.
Then, once the write access is granted, git can perform the push operation. It uses for this your local username set on your current machine using git config --global user.name "My Name"
. Git ignores the username and password used in the previous step.