Skip to content

Instantly share code, notes, and snippets.

@gaeljw
Created March 7, 2018 09:02
Show Gist options
  • Save gaeljw/0297d629bb9b5ab3e09bb095765c3748 to your computer and use it in GitHub Desktop.
Save gaeljw/0297d629bb9b5ab3e09bb095765c3748 to your computer and use it in GitHub Desktop.
Commandes migration SVN vers Git
# 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