Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
6.9k views
in Technique[技术] by (71.8m points)

git - Sourcetree cannot clone repository if wrong login credential in the first time

After I enter the clone url it appears a login screen entering the login name and password.

However, I wonder I type them wrongly, I failed to clone the repository. Then, no matter I retry to clone or even I reinstall Sourcetree, it gives me error when trying to clone:

Error: remote: HTTP Basic: Access denied
fatal: Authentication failed

no more login screen comes out but keeps me access denied.

I had go for Credential Manager in Control Panel as Remove credentials from Git tells, but I cannot find any credentials relating to it.

I am new to Sourcetree and Git, hope someone can help me.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

https://community.atlassian.com/t5/Sourcetree-questions/How-to-update-HTTP-S-credentials-in-sourcetree/qaq-p/297564

same method, remove the passwd file from

C:UsersUSERNAMEAppDataLocalAtlassianSourceTree

then you are able to enter your password again:)


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...