Created
March 7, 2018 09:02
-
-
Save gaeljw/0297d629bb9b5ab3e09bb095765c3748 to your computer and use it in GitHub Desktop.
Commandes migration SVN vers Git
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 1 - Recuperer les auteurs dans un fichier authors.txt et associer userSVN=userGit | |
# Windows | |
svn.exe log --quiet | ? { $_ -notlike '-*' } | % { ($_ -split ' \| ')[1] } | Sort -Unique | |
# Linux : https://stackoverflow.com/questions/2494984/how-to-get-a-list-of-all-subversion-commit-author-usernames | |
# 2 - Migration | |
git svn init --prefix=svn/ --no-metadata --trunk=trunk --tags=tags --branches=branches <url> | |
git svn config --local --get user.name | |
git svn config --local svn.authorfile authors.txt | |
git svn fetch | |
# OU | |
git svn fetch --authors-file=authors.txt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment