Reputation: 801
On Visual Studio 2017, I can not clone a repository with git. I'm having this error message:
The repository url is good and the destination folder is also fine (no spaces or special characters). I tried on another computer and everything works perfectly. When I'm cloning the same project with GitKraken, SourceTree or in command line, everything works. I tried to uninstall git, cleaning my tfs/git credentials, uncheck "Git for Windows" option on the Visual Studio installer, in vain....
Has anyone ever had the same problem? How did you solve it? Thanks for the help!
Visual Studio 2017: 15.9.11
Git version: 2.21.0
Git url path: https://tfs.mysubdomain.mydomain.fr/dev/PROJECT/_git/PROJECT
TFS Server: https://tfs.mysubdomain.mydomain.fr/dev/PROJECT/PROJECT%20Team/_git/PROJECT
Upvotes: 6
Views: 5406
Reputation: 336
I've resolved this by deleting .\obj and .\bin folders in my startup project.
Upvotes: -1
Reputation: 401
I'm not sure what's the cause of it. I've been running git commands in the Windows Terminal. And the same problem happened when I try to pull in Visual Studio.
Here's how I got the problem resolved:
Restart the computer😂
Upvotes: 3
Reputation: 801
I finally fixed it by this way:
Et voilà :)
Everything works perfectly now. I think uninstall only git was not enough. I don't really understand why I had this issue but the bulldozer strategy was efficient.
Upvotes: 0