| (Une version intermédiaire par le même utilisateur non affichée) | |||
| Ligne 29 : | Ligne 29 : | ||
== Migration proprement dite == | == Migration proprement dite == | ||
Merci à <favorites like="Migrer de subversion vers git" /><br/> | Merci à <favorites like="Migrer de subversion vers git";output=shorthtml/><br/> | ||
* aller dans le répertoire ou se situe la copie locale du repo svn | * aller dans le répertoire ou se situe la copie locale du repo svn | ||
:ouvrir un '''powershell''' et récupérer la liste des auteurs des commits | :ouvrir un '''powershell''' et récupérer la liste des auteurs des commits | ||
<keywords content="SVN,Git,subversion"/>
svnserve.exe -d -r g:\svn
sc create svnserve binpath="\"C:\Program Files\TortoiseSVN\bin\svnserve.exe\" --service -r G:\SVN" displayname="Subversion Server" depend=Tcpip start=auto
sc start svnserve
sc query svnserve
SERVICE_NAME: svnserve
TYPE : 10 WIN32_OWN_PROCESS
STATE : 4 RUNNING
(STOPPABLE, NOT_PAUSABLE, IGNORES_SHUTDOWN)
WIN32_EXIT_CODE : 0 (0x0)
SERVICE_EXIT_CODE : 0 (0x0)
CHECKPOINT : 0x0
WAIT_HINT : 0x0
Merci à
svn.exe log --quiet| ? { $_ -notlike '-*' } | % { "{0} = {0} <{0}>" -f ($_ -split ' \| ')[1] } | Select-Object -Unique | Out-File 'f:\temp\authors-transform.txt'
git svn clone svn://localhost/wordpress --prefix=svn/ --no-metadata --authors-file "f:\temp\authors-transform.txt" --stdlayout f:\temp\wordpress
cd g:/GIT/wordpress
git init --bare .
git symbolic-ref HEAD refs/heads/master
cd /f/temp/wordpress
git remote add bare /g/GIT/wordpress
git config remote.bare.push 'refs/remotes/*:refs/heads/*'
git push bare
cd /g/GIT/wordpress
git branch -m svn/trunk master
git for-each-ref --format='%(refname)' refs/heads/tags