tags:

views:

177

answers:

2

Hello folks,

I'm using git to track a SVN repository. It's all working fine, but now the domain name of the repository changed and I need to commit my changes back to SVN. Except for git svn rebase & git svn dcommit wont work since the domain name has changed. How can I change the repository to track the new location? I already tried editing .git/config SVN URL, but that won't work.

Thanks in advance!

A: 

If only the domain name changed, you could simply edit your /etc/hosts file (or whatever the equivalent is over in Windows land) to let the old name point to the new address.

innaM
I tried it but for some reason its not working. And I cant seem to fix it. But I'd like to know how to fix this the poper way, using git, since the location might change aswell in the (near) future.
+2  A: 

This site says you need to create a new git-svn clone from the new svn URL, then copy any local changes into it.

You could try GitSvnSwitch but I think its only for relocating within a svn repo (ie svn switch, not svn relocate)

Edit: Or we could both see this SO post :)

gbjbaanb
WOW. Thats a lot of work for something which seems 'simple'. I'll try it out, thanks for the help.
gitsvnswitch is what you're looking for
rado

related questions