Created
November 16, 2011 11:19
-
-
Save padde/1369858 to your computer and use it in GitHub Desktop.
Commit to SVN via Git
This file contains hidden or 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
# in case there is no first commit | |
svn co $SVN_PATH | |
svn add . | |
svn commit | |
# now the git-svn part | |
git svn init $SVN_PATH | |
git svn fetch | |
# commit from git | |
git add . | |
git commit -am "foobar" | |
git svn dcommit | |
# add additional github repo | |
git remote add github [email protected]:user/repo.git | |
git push -u github master |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment