Skip to content

Instantly share code, notes, and snippets.

@j2gl
Created November 26, 2015 09:37
Migrating SVN to Git - Fix branches on Git - http://blog.sltech-gt.com/2015/11/welcome-git-thanks-svn.html
for branch in `git branch -r` ; do
lbranch=`echo $branch | sed 's=origin/=='`
echo "git checkout -b $lbranch $branch"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment