Skip to content

Instantly share code, notes, and snippets.

@K4zuki
Last active August 29, 2016 04:27
Show Gist options
  • Save K4zuki/97995e0c2cd7c8351a6f66a7691ed97b to your computer and use it in GitHub Desktop.
Save K4zuki/97995e0c2cd7c8351a6f66a7691ed97b to your computer and use it in GitHub Desktop.
git-svn-clone from local (and windows network drive) repos

hint from HERE

  • windows7 and git for windows
  • tortoisesvn 1.8 and given svn environment

start svn server using svnserve.exe

  • on PowerShell run svnserve.exe -d --root <P:\\path\to\local\svn\repository\dir>
    • it makes No prompt

clone svn repo as git repo

  • on your git workspace (if any) run git svn clone svn://relative/path/to/repo
    • in my case error happend several times -> cd <repo> then repeat git svn fetch until finish conversion

add remote (e.g. github repo)

  • in your <repo> run git remote add origin <URL to github repo>
  • in my case remote is a brank repo so I did rebase:
    • git rebase origin/master
  • finally push it to remote:
    • git push origin master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment