I am using VS2015 and working with a team which uses bitbucket to share the code. Every time I am trying to push my changes to the branch or sync it I get this error:
Opening repositories:
C:\path\to\the\Repos\nameofrepository
Error encountered while pushing to the remote repository: Response status
code does not indicate success: 401 (Unauthorized).
Every time I press the push or sync button I am asked to enter my credentials (username and password) to connect to my bitbucket account. The credentials are correct, for that I am 100% sure.
I have looked in the internet and found that this error may be caused by the entering wrong credentials(which i didnt) so I went to the "Windows Credential Manager" and reset all the credentials there, tho I didn't find any relevant to VS. Nothing I have tried worked.
Does anyone know why does this happens?
PS: I don't have a 2 ways verification enable in my account. Thanks
Solution 1 :
I think Insufficient privileges on the git-project
(ie only read) will
give you this error.
Give required permisson to the project folder & Try again.
Solution 2 :
Remove the credentials GitHub saves in your local machine.
Here are the steps I took:
After trying everything on the web I came to the conclusion that there was nothing I could do, so I deleted my account and created a new one. Now everything works fine.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.