Tuesday, January 11, 2011
Changing the origin of your git repository
What is is with some project managers and similar who want to move repositories about? I've never understood why this is necessary. Anyways the command is something like...
git config remote.origin.url «git@10.0.0.1:gitrepo/code.git»
You can check it by cating the file .git/config, looking for the remote origin section and in there will be the new url.
[remote "origin"]
url = git@10.0.0.1:gitrepo/code.git
git config remote.origin.url «git@10.0.0.1:gitrepo/code.git»
You can check it by cating the file .git/config, looking for the remote origin section and in there will be the new url.
[remote "origin"]
url = git@10.0.0.1:gitrepo/code.git
Labels: git
Subscribe to Posts [Atom]