Last active
October 25, 2016 21:16
-
-
Save svyatoslavmo/810119082105fcf6b1774b950e0dd21d to your computer and use it in GitHub Desktop.
svn2git migration with non standard layout-gitlab
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
#svn2git migration with non standard layout. i.e repository/folder > folder will be root of git repo | |
# $2 name of group in gitlab | |
#!/bin/bash | |
mkdir $1 && cd $1 | |
git svn clone https://example.com:8443/svn/$1/$2 --no-metadata -A ~/authors.txt --username=user_with_access | |
cd $2/ | |
git remote add origin git@git.example.com:$1/$2.git | |
git push -u origin master |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment