How to Mirror an SVN repository on GitHub

24 Jan
2010

Because GitHub is cool and sourceforge isn’t. (And i like to manage my submodules via git)

  • Create your dir of choice
  • git init
  • git svn init -T  <svnrepo>
  • git svn fetch
  • git gc (to speed things up)
  • git remote add origin <yourgitpushurl>
  • git push origin master

Keep stuff in sync

  • git svn rebase
  • git push origin master

That’s it, folks! Now you can be a cool GitHubber ;)
Yeah, works for any other git repo too… btw here’s the original source.

Related posts:

  1. Convert mercurial repos to git
  2. git and cvs turnaround ‘guerilla style’
  3. Git! Git!
  4. Github… love hate relationship

Comment Form

top

Switch to our mobile site