Skip to content

Instantly share code, notes, and snippets.

@svyatoslavmo
Last active October 25, 2016 21:16
Show Gist options
  • Save svyatoslavmo/810119082105fcf6b1774b950e0dd21d to your computer and use it in GitHub Desktop.
Save svyatoslavmo/810119082105fcf6b1774b950e0dd21d to your computer and use it in GitHub Desktop.
svn2git migration with non standard layout-gitlab
#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