Created
February 25, 2013 21:44
-
-
Save ckorn/5033621 to your computer and use it in GitHub Desktop.
These scripts convert remote tags/branches of git-svn into real git tags/branches: http://jausoft.com/blog/2009/07/08/svn-to-git-migration-1/
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 characters
| #! /bin/sh | |
| branchfile=$1 | |
| shift | |
| if [ -z "$branchfile" ] ; then | |
| echo Usage $0 branchfile containing branchnames without ref path | |
| exit 1 | |
| fi | |
| for i in `cat $branchfile` ; do | |
| git checkout --track -b $i remotes/$i | |
| git checkout master | |
| git branch -r -D $i | |
| done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment