git – how can I clone local svn repository?

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 colon : in the file link on Windows. file://e:/svn_repo_on_E_drivefile:///e/svn_repo_on_E_drive

git svn clone also works on remote svn repos

# for example
git svn clone https://your.hostname/path/here/svn/
  • note: git svn clone gets all commits, as opposed to svn checkout only getting the most recent file set, and so the shell command can take a long time if the svn repo has lots of commits and/or files.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)