Skip to content

Instantly share code, notes, and snippets.

@gtrias
Last active August 29, 2015 14:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gtrias/0b1a943998d9e8109689 to your computer and use it in GitHub Desktop.
Save gtrias/0b1a943998d9e8109689 to your computer and use it in GitHub Desktop.
Push existing git repository to existing svn repository
# Clone the svn repository
$ git svn clone http://svn.example.com/project/trunk # Important to clone the trunk folder
$ cd trunk
$ git checkout -b mywork
$ git pull /path/to/current/work/repository/.git master
#Merge and "push"
$ git checkout master
$ git merge mywork
$ git svn dcommit
# Source http://stackoverflow.com/a/8779227
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment