On my own GitHub repository I've noticed that there are commits from unrecognized author
.
I've started investigating and I realized that when I push any changes on my remote repository via Visual Studio 2015 - Team Explorer
, the changes are pushed successfully even If I change my global .gitconfig
settings and set there invalid username along with invalid e-mail address - this is the case when I get unrecognized author
.
If I try to push the changes directly via git bash
command prompt, and enter invalid username or password I'll get: invalid username or password
- which is obvious, and normal.
And I get: The requested URL returned error: 403
if I enter valid user/pass - but again, this is normal because I haven't added this user as my Collaborator
.
If I add this user as my collaborator, I can push successfully.
So, why is this happening ?
Why GitHub allows me to push changes via VS 2015 with invalid user/email ?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…