Skip to content

Instantly share code, notes, and snippets.

@padde
Created November 16, 2011 11:19
Show Gist options
  • Save padde/1369858 to your computer and use it in GitHub Desktop.
Save padde/1369858 to your computer and use it in GitHub Desktop.
Commit to SVN via Git
# 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