Reputation: 1678
I renamed my Git repository on team foundation server online and now I can't clone it anymore. I can connect to the team foundation project but cloning the repository fails, because there the old name is used for the repository URL. How can I force Visual Studio to use the correct repository URL?
Additional Information: I already tried to initialize Visual Studio with no success.
Source: http://www.corvalius.com/site/hacks/how-to-hard-reset-visual-studio-instance/
Upvotes: 1
Views: 747
Reputation: 23434
Did you follow the instructions to close Visual Studio and open it again.
If so, you can try deleting the TFS cache from c:\Users[you]\Local Settings\Application Data\Microsoft\Team Foundation\5.0\Cache
Upvotes: 1
Reputation: 2014
I had a similar problem like this a while ago. The way I did it was just use git in a shell to update the remote. I'm sure you can also do this in VS itself, but I found it easier to do it the 'old fashioned way'.
Just browse to your folder in git shell and use git remote set-url origin https://repo.url
After this, Visual Studio should use the new remote.
Upvotes: 4