Skip to content

Instantly share code, notes, and snippets.

@fwenzel
Created February 12, 2010 19:48
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 fwenzel/302904 to your computer and use it in GitHub Desktop.
Save fwenzel/302904 to your computer and use it in GitHub Desktop.
Clone SVN repo into git

Clone SVN into a git repo:

  • git svn clone https://svn.mozilla.org/my/project project
  • cd project
  • git remote add origin git@github.com:/johndoe/project
  • git push origin master

Change a file:

  • touch abc; git add abc; git commit -m 'awesome file'
  • git svn dcommit # puts it into SVN and changes the git commit ID
  • git push origin master # to push all that into the git clone
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment