GIT: My remote repository moved. How do I tell my local repo to use the new one?
I have a local git repository that pushes to a remote repository. That remote repository moved to a new server. How do I make "git push" and "git pull" push/pull to/from the new repo?
It's probably very simple, but I don't want to screw anything up, so I'm asking first. ;) |
It's as simple as deleting the existing remote, and adding a new one. To view (and then delete the existing remote), do the following:
Code:
First, let's find out what your remote's name was: Code:
$ git remote add origin path_to_new_remote |
Thanks for that info! I knew there must be a 'proper' way to do it.
I just went in & edited the .git/remotes/origin file. That works too. ;) |
Anytime. :)
|
All times are GMT -5. The time now is 12:07 AM. |