Reputation: 949
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
Upvotes: 10
Views: 5650
Reputation: 301037
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.
Upvotes: 14
Reputation: 21893
# git remote set-url origin <newurl>
If your question is how to do this from within Xcode, then I don't know. This is how you do it in git. Whatever Xcode would do would really be doing this.
Upvotes: 5