SyntaxFix
Write A Post
Hire A Developer
Questions
In my case the error was some old username and password was stored in cache.
So I removed it by going to sourceTree and delete the existing account.
Now for the new clone then it will ask you for the password for the repo.