git重新连接到远程存储库 [英] git reconnect to a remote repository
本文介绍了git重新连接到远程存储库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我犯了一个很大的错误,导致我的项目的本地版本不再与曾经与之关联的远程存储库连接.是否有一些技巧可以重新建立该连接/关联而不会破坏本地版本的代码?
I made a huge mistake that resulted in my having a local version of my project that is no longer connected with the remote repository it was once associated with. Is there some trick to reestablishing that connection/association w/o blowing away the local version of the code?
推荐答案
您尝试过:
git remote add --track master origin [url-to-git-repo]
这篇关于git重新连接到远程存储库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文