Welcome, guest! Login / Register - Why register?
Psst.. new poll here.
Psst.. new forums here.
Microsoft is blocking us again (TY IP Reputation!) so just use oauth login instead. :)

Paste

Pasted as Bash by foobar ( 6 years ago )
# For every git branch of the format "release/*", make a tag "v*"
for branch in $(git for-each-ref --format '%(refname)' refs/remotes/origin/release); do
    branch="${branch/'refs/remotes/origin/'/''}"
    git tag ${branch/'release/'/'v'} $branch
done

 

Revise this Paste

Parent: 111076
Your Name: Code Language: