Skip to content

Instantly share code, notes, and snippets.

@akottr
Last active August 29, 2015 14:10
Show Gist options
  • Save akottr/9d7d83f7c1fd8aae9296 to your computer and use it in GitHub Desktop.
Save akottr/9d7d83f7c1fd8aae9296 to your computer and use it in GitHub Desktop.
git svn

from svn to git

git svn clone http://somesvnrepo/svn/path/to/repo -T trunk -b branches -t tags
git remote add somegitrepo https://github.com/path/to/gitrepo.git
git fetch somegitrepo
git reset --hard somegitrepo/master
git svn rebase 
# -> merge if necessary
# -> git add .
# -> git rebase --continue
# finish merge
git push --force somegitrepo master

# next merge
git svn fetch
git fetch chainsaw
git reset --hard somegitrepo/master
git svn rebase 
git push --force somegitrepo master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment