git - how can I clone local svn repository?

Bulwersator picture Bulwersator · Mar 13, 2013 · Viewed 34.1k times · Source

I am completely unable to find any explanation how I should specify location of existing svn repository.

In other words - what should be used as URL in

git svn clone URL

when svn repository is local?

Answer

zionyx picture zionyx · Jan 13, 2015

You should be able to succeed like this:

git svn clone file:///e/svn_repo_on_E_drive

Similar to svn checkout command:

svn co file:///e/svn_repo_on_E_drive

file:// for folder on the current drive of the executing CMD prompt, file:///d/some_folder for D:\some_folder.

Note: The extra / and the removed drive colon in the file link on Windows. file://e:/svn_repo_on_E_drivefile:///e/svn_repo_on_E_drive