简体   繁体   English

Visual Studio 2013使用错误的克隆URL

[英]Visual Studio 2013 uses wrong Clone url

I renamed my Git repository on team foundation server online and now I can't clone it anymore. 我在线重命名了Team Foundation Server上的Git存储库,现在无法克隆它了。 I can connect to the team foundation project but cloning the repository fails, because there the old name is used for the repository URL. 我可以连接到团队基础项目,但是克隆存储库失败,因为那里的旧名称用于存储库URL。 How can I force Visual Studio to use the correct repository URL? 如何强制Visual Studio使用正确的存储库URL?

Additional Information: I already tried to initialize Visual Studio with no success. 附加信息:我已经尝试初始化Visual Studio,但没有成功。

Source: http://www.corvalius.com/site/hacks/how-to-hard-reset-visual-studio-instance/ 资料来源: http : //www.corvalius.com/site/hacks/how-to-hard-reset-visual-studio-instance/

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. 我这样做的方法是在外壳中使用git更新遥控器。 I'm sure you can also do this in VS itself, but I found it easier to do it the 'old fashioned way'. 我相信您也可以在VS本身中执行此操作,但是我发现以“老式方式”执行此操作比较容易。

Just browse to your folder in git shell and use git remote set-url origin https://repo.url 只需浏览到git shell中的文件夹并使用git remote set-url origin https://repo.url

After this, Visual Studio should use the new remote. 此后,Visual Studio应该使用新的遥控器。

Did you follow the instructions to close Visual Studio and open it again. 您是否按照说明关闭了Visual Studio,然后再次将其打开。

If so, you can try deleting the TFS cache from c:\\Users[you]\\Local Settings\\Application Data\\Microsoft\\Team Foundation\\5.0\\Cache 如果是这样,您可以尝试从c:\\ Users [you] \\ Local Settings \\ Application Data \\ Microsoft \\ Team Foundation \\ 5.0 \\ Cache删除TFS缓存

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM