Last active
August 29, 2015 14:26
-
-
Save gtrias/0b1a943998d9e8109689 to your computer and use it in GitHub Desktop.
Push existing git repository to existing svn repository
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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