Tuesday, June 11, 2013

Fork a svn project from Google Code to GitHub

Clone a repo:
$ git svn clone http://<PROJECT>.googlecode.com/svn <PROJECT>
Enter the newly cloned directory:
$ cd <PROJECT>
Setup Git repository:
$ git remote add origin https://github.com/<USER>/<PROJECT>.git
$ git push origin master
Do some work and commit locally to Git. Once something is committed to SVN, rebase your local changes against the latest changes in SVN:
$ git svn rebase
$ git push

Stay tuned!

No comments:

Post a Comment