Skip to content

Instantly share code, notes, and snippets.

@timanrebel
Last active September 14, 2015 17:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save timanrebel/f09c2533256757169931 to your computer and use it in GitHub Desktop.
Save timanrebel/f09c2533256757169931 to your computer and use it in GitHub Desktop.
SVN branches to Git branches on Mac OSX
git branch -r | grep -v tags | sed -Ene 's, *([^@]+)$,\1,p' | \
while read branch; \
do echo "git branch $branch $branch"; \
done | sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment