Open main menu

Changes

Git svn

291 bytes added, 20:28, 20 July 2013
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 article.]
=== Windows === md C:\relax mkdir gittestsvnadmin create C:/relax/trunk cd gittestmd C:\relax\branches svnadmin create svnC:/relax/branches/relax_disp
#In windows
echo exit 0 > svnC:/relax/trunk/hooks/pre-revprop-change.bat #In linux echo "#!/bin/sh" > svn/hooks/pre-revprop-change echo "exit 0;" >> svnC:/relax/hooksbranches/pre-revprop-change chmod +x svnrelax_disp/hooks/pre-revprop-change.bat
svnsync init file:///cC:/WinPython27relax/trunk http:/gittest/svn .gna.org/svn/relax/trunk svnsync init file:///C:/relax/branches/relax_disp http://svn.gna.org/svn/relax/trunkbranches/relax_disp
# Be aware, if your repo is big, it could take a loooot of time.
# Example. 20500 commits, toke from 22 PM to 23 PM.
svnsync sync file:///cC:/WinPython27relax/gittesttrunk svnsync sync file:///C:/relax/branches/relax_disp  md C:\relax\trunk_git cd C:\relax\trunk_git git svnclone file:///C:/relax/trunk -s
mkdir gitmd C:\relax\branches\relax_disp_git cd gitC:\relax\branches\relax_disp_git git svn clone file:///cC:/WinPython27relax/gittestbranches/svn relax_disp -s
Trusted, Bureaucrats
1,382

edits