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

Labels:


Comments: Post a Comment

Subscribe to Post Comments [Atom]



Links to this post:

Create a Link



<< Home

This page is powered by Blogger. Isn't yours?

Subscribe to Posts [Atom]