Difference between revisions of "Git svn"
Jump to navigation
Jump to search
Line 12: | Line 12: | ||
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. | 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. | ||
− | + | You also need an [[Authors#authors.txt | authors.txt]] file, to correctly convert the metadata. | |
− | |||
− | git svn clone http://svn.gna.org/svn/relax/branches/relax_disp | + | git svn clone http://svn.gna.org/svn/relax/trunk --no-metadata -A authors.txt |
− | git svn clone -r 20000:HEAD http://svn.gna.org/svn/relax/branches/relax_disp | + | git svn clone -r 20000:HEAD http://svn.gna.org/svn/relax/trunk --no-metadata -A authors.txt |
+ | |||
+ | git svn clone http://svn.gna.org/svn/relax/branches/relax_disp --no-metadata -A authors.txt | ||
+ | git svn clone -r 20000:HEAD http://svn.gna.org/svn/relax/branches/relax_disp --no-metadata -A authors.txt | ||
#Build | #Build | ||
Line 25: | Line 27: | ||
=== Check information === | === Check information === | ||
git branch -a | git branch -a | ||
− | |||
== See also == | == See also == | ||
[[Category:git]] | [[Category:git]] |
Revision as of 20:21, 21 July 2013
Background
Windows
Based on these posts and on this recommended post.
You should install msysgit, to do the checkout.
md C:\relax cd C:\relax
To clone from a revision number, use -r NR. This will tell which 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.
You also need an authors.txt file, to correctly convert the metadata.
git svn clone http://svn.gna.org/svn/relax/trunk --no-metadata -A authors.txt git svn clone -r 20000:HEAD http://svn.gna.org/svn/relax/trunk --no-metadata -A authors.txt
git svn clone http://svn.gna.org/svn/relax/branches/relax_disp --no-metadata -A authors.txt git svn clone -r 20000:HEAD http://svn.gna.org/svn/relax/branches/relax_disp --no-metadata -A authors.txt
#Build scons
For futurev updates to the SVN revision HEAD, you now need to do a git svn rebase, which is very similar to: svn up
git svn rebase
Check information
git branch -a