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@»

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@


Comments: Post a Comment

Subscribe to Post Comments [Atom]

<< Home

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

Subscribe to Posts [Atom]