Difference between revisions of "Git svn"

From relax wiki
Jump to navigation Jump to search
Line 2: Line 2:
  
 
== Windows ==
 
== Windows ==
[http://www.tfnico.com/presentations/git-and-subversion Based on these posts] and on [http://trac.parrot.org/parrot/wiki/git-svn-tutorial these posts].
+
[http://www.tfnico.com/presentations/git-and-subversion Based on these posts] and on [http://trac.parrot.org/parrot/wiki/git-svn-tutorial this recommended post].
  
 
* -r is for the revision to start taking history from. If you want to include all of the history, just leave that option off, but it will take a very long time, and you really don't need all of it. The older a revision you choose, the longer it will take to import. But you will not be able to "git blame" past the earliest revision you import. Choose wisely.
 
* -r is for the revision to start taking history from. If you want to include all of the history, just leave that option off, but it will take a very long time, and you really don't need all of it. The older a revision you choose, the longer it will take to import. But you will not be able to "git blame" past the earliest revision you import. Choose wisely.

Revision as of 09:32, 21 July 2013

Background

Windows

Based on these posts and on this recommended post.

  • -r is for the revision to start taking history from. If you want to include all of the history, just leave that option off, but it will take a very long time, and you really don't need all of it. The older a revision you choose, the longer it will take to import. But you will not be able to "git blame" past the earliest revision you import. Choose wisely.
md C:\relax
cd C:\relax
git svn clone -r 20000:HEAD svn://svn.gna.org/svn/relax/trunk/

This takes a clone of the repository at that revision; to update it to HEAD, you now need to rebase, which is very similar to: svn up

git svn rebase