Last active
December 19, 2015 11:28
-
-
Save markwillis82/5947412 to your computer and use it in GitHub Desktop.
Revisions
-
Mark Willis revised this gist
Jul 8, 2013 . 1 changed file with 11 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,11 @@ echo "git - svn conversion" git svn clone file:///repos/dev.server --authors-file=users.txt --no-metadata -s devGitRepo echo "Clean up branches" cd bhlive.git/ git remote add origin <add remote repo url> git for-each-ref refs/remotes | cut -d / -f 3- | grep -v @ | while read branchname; do git branch "$branchname" "refs/remotes/$branchname"; git branch -r -d "$branchname"; done echo "push to BitBucket" git push origin --all -
Mark Willis created this gist
Jul 8, 2013 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,12 @@ echo "Checkout svn repo" svn co file:///repos/dev.server dev.repo echo "Create users file" svn log --xml dev.bhlive.repo | grep -P "^<author" | sort -u | perl -pe 's/<author>(.*?)<\/author>/$1 = /' > users.txt echo "Map users to bitbucket accounts" cat users.txt # chris.cherrett = Chris Cherrett <chris.cherrett@adi.do> # thomas.stradling = Thomas Stradling <thomas.stradling@adi.do>