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/6e4531effc6d05cd9c40 to your computer and use it in GitHub Desktop.
Save timanrebel/6e4531effc6d05cd9c40 to your computer and use it in GitHub Desktop.
SVN tags to Git tags on Mac OSX
git branch -r | sed -Ene 's, *tags/([^@]+)$,\1,p' | \
while read tag; do \
echo "git tag $tag 'tags/${tag}^'; git branch -r -d tags/$tag"; \
done | sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment