Skip to content

Instantly share code, notes, and snippets.

@n00ge
Created September 13, 2013 18:32
Show Gist options
  • Save n00ge/6554340 to your computer and use it in GitHub Desktop.
Save n00ge/6554340 to your computer and use it in GitHub Desktop.
Initializing a new SVN Repo with Git-SVN
git init
git status
svn mkdir --parents https://url.com/repo/trunk -m "Creating trunk"
git svn init https://url.com/repo -s
git svn fetch
git status
git branch -r
git svn rebase
git svn dcommit -n
git add -i
git status
git commit -m "Initial commit"
git status
git svn dcommit -n
git svn dcommit
svn mkdir --parents https://url.com/repo/branches -m "Creating branches"
git svn branch -m "Branch for new_feature" new_feature
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment