Skip to content

Instantly share code, notes, and snippets.

@gerhard
Created February 17, 2009 12:26
Show Gist options
  • Select an option

  • Save gerhard/65723 to your computer and use it in GitHub Desktop.

Select an option

Save gerhard/65723 to your computer and use it in GitHub Desktop.
gerhardlazu@dino:aspire-branched (master) $ /opt/local/libexec/git-core/git-for-each-ref refs/remotes/tags0e23924cc26560b2ef36705b0d0bbecd83d8fe98 commit refs/remotes/tags/aardvaark
174a98d8bcf144ce3caa128fd093c81603cd8032 commit refs/remotes/tags/badger
4196b456595ed76f2f0d74fab5a0b9a2e66377fc commit refs/remotes/tags/coelacanth
05fe5700ad3e20d37c7f7651d6e462a184b42538 commit refs/remotes/tags/coelacanth2
ce40b9450ad9f17149b9a411c91fbd3a6a317f15 commit refs/remotes/tags/coelacanth3
6e15809cf3c55a3745e79a11725d15aff77cc24b commit refs/remotes/tags/dik-dik
53b61cf43cb7a1e1dca93d19dbe54c9d66ec3f5d commit refs/remotes/tags/earthworm
a1c5e8df37aca6b214e44a73732aebe25e1da950 commit refs/remotes/tags/earthworm2
71a4f980afe86aff008e004fc195594b7e1fed87 commit refs/remotes/tags/galapagos
b91a71dc39ec604c51907ce1a6170bc49fb0f2ad commit refs/remotes/tags/hummingbird
dc1cf4ff76584c50335455c27e183b3090b2a4d8 commit refs/remotes/tags/icthyosaur
be3f80d44ccd5f3b51ecda4004ab947d699dddd5 commit refs/remotes/tags/javelina
798c7eb99e24e20be8c2f6414c926a5770b2f6b7 commit refs/remotes/tags/marmot
eb322b25f4a4010449f88b3b6ead9cdbe6e5e7e7 commit refs/remotes/tags/okapi
1bcadad0c0fea5487d4681d31cf045c87ebd7409 commit refs/remotes/tags/okapi-api
632c984d3af2a88d93a4999f7bd32c232c24332b commit refs/remotes/tags/praying_mantis
ba5bb38f0d53ad16806d50d8ef006dcff3246934 commit refs/remotes/tags/pre-comatose
78abceed392a81044430658dffc00bade63c3037 commit refs/remotes/tags/quokka
c41134717ce2259df7a7841e54834c753c3b3bbf commit refs/remotes/tags/release_0_1
ec3e3d81e353747c679dec452c594fe819cdf05c commit refs/remotes/tags/sprint_10
ee451d32be3085df35515ae586f8397905b47809 commit refs/remotes/tags/sprint_17
0de2ff70b89127284c8b2658cc4452913c8896c9 commit refs/remotes/tags/sprint_2
b433bf69b1e7d466a46e442804f7b80b490f445a commit refs/remotes/tags/sprint_21
814094d068dd1ca9929a15e79e2b2d3b79306df3 commit refs/remotes/tags/sprint_22
aa847c4f5c62e2a97a6b7c6134e35ac82846743f commit refs/remotes/tags/sprint_3
70aae1048a36db483231de68e005f68c5e0b44fb commit refs/remotes/tags/sprint_4
d3fb145dec1680e856b564aac1c69a62f6785844 commit refs/remotes/tags/sprint_5
b7e8b064fe87f9b751d4e828447d172f7fb0738e commit refs/remotes/tags/sprint_6
8211d434a058b4b98c521b49f02601eec1eda612 commit refs/remotes/tags/sprint_7
a08f08a9054e2328b9593188932d4958e168179d commit refs/remotes/tags/sprint_8
130df5d5f9f9ea9c77c83ab8091582c7479ca908 commit refs/remotes/tags/sprint_9
gerhardlazu@dino:aspire-branched (master) $ /opt/local/libexec/git-core/git-for-each-ref refs/remotes/tags | cut -d / -f 4- | while read ref; do git tag -a "$ref" -m"say farewell to SVN" "refs/remotes/tags/$ref"; done
# works a treat!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment