Difference between revisions of "Git svn"
Jump to navigation
Jump to search
(Created page with "== Background == Based [http://git-scm.com/book/ch8-1.html on this] and [http://iacoware.wordpress.com/2009/10/02/howto-use-svnsync-to-mirror-a-repository-on-windows/ this art...") |
|||
Line 16: | Line 16: | ||
# Be aware, if your repo is big, it could take a loooot of time. | # Be aware, if your repo is big, it could take a loooot of time. | ||
svnsync sync file:///c:/WinPython27/gittest/svn | svnsync sync file:///c:/WinPython27/gittest/svn | ||
+ | |||
+ | mkdir git | ||
+ | cd git | ||
+ | git svn clone file:///c:/WinPython27/gittest/svn -s |
Revision as of 19:57, 20 July 2013
Background
Based on this and this article.
mkdir gittest cd gittest svnadmin create svn
#In windows echo exit 0 > svn/hooks/pre-revprop-change.bat #In linux echo "#!/bin/sh" > svn/hooks/pre-revprop-change echo "exit 0;" >> svn/hooks/pre-revprop-change chmod +x svn/hooks/pre-revprop-change
svnsync init file:///c:/WinPython27/gittest/svn http://svn.gna.org/svn/relax/trunk # Be aware, if your repo is big, it could take a loooot of time. svnsync sync file:///c:/WinPython27/gittest/svn
mkdir git cd git git svn clone file:///c:/WinPython27/gittest/svn -s