Skip to content

Instantly share code, notes, and snippets.

@mumrah
Created September 15, 2011 15:46
Show Gist options
  • Save mumrah/1219612 to your computer and use it in GitHub Desktop.
Save mumrah/1219612 to your computer and use it in GitHub Desktop.
# Make the SVN repo:
svn mkdir protocol://path/to/repo
# Tell Git to track it (by default the SVN repo becomes the remote branch "git-svn"):
git svn init protocol://path/to/repo
git svn fetch
# Checkout the empty "git-svn" branch to a local integration branch:
git checkout -b svn-integration --track git-svn
# Merge the Git branch (non-fast-forwarded!) into the integration branch:
git merge --no-ff --no-commit feature
# Commit!
git commit
git svn dcommit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment