GIT Xcode - 改变原点 [英] GIT Xcode - change origin
本文介绍了GIT Xcode - 改变原点的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我如何更改GIT存储库中的原始URL。我不想添加新的回购。我想改变旧的。请帮助我。我找到了添加新的选项但不改变现有的选项。
谢谢
解决方案我不认为你可以从XCode4做到这一点,就像其他许多事情一样。
执行 git remote set-url
和一个建议,通过命令行享受Git,因此在IDE / GUI不起作用的地方,很乐意从命令行工作。
How can i change the origin url in the GIT Repository. I dont want to add a new repo. I want to change the old one.Please help me. I find option to add new one but not change the existing one.
Thanks
解决方案
I don't think you can do that from XCode4, much like many other things.
Do git remote set-url origin <newurl>
like @Dan Ray suggests, or go to .git/config and edit the url to the new one.
And one piece of advice, Git is enjoyed through the command line, so where the IDE/ GUI doesn't work, be happy to work from the command line.
这篇关于GIT Xcode - 改变原点的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文