Reputation: 142
I have used git a lot. I am wondering how does git authenticate because
git config --global user.name "Jane Doe"
git config --global user.email "[email protected]"
does not ask for password.
I can push without the password. Does this mean anyone with my email can push to my github account?
Upvotes: 0
Views: 1481
Reputation: 1323773
The user.name
/email
is not about remote authentication, but about local commit authorship (the committer user name/email associated with the commit you are creating locally)
If you push without entering any credentials, it can be:
git config credential.helper
Upvotes: 2