Skip to content

Instantly share code, notes, and snippets.

@menski
Created November 28, 2014 10:34
Show Gist options
  • Save menski/6f54a35a733ba5188cd4 to your computer and use it in GitHub Desktop.
Save menski/6f54a35a733ba5188cd4 to your computer and use it in GitHub Desktop.
Script to update tags of camunda get started repos
#!/bin/sh
DELIM=${1:-:}
git log --format=oneline --reverse | while read line; do
hash=$(echo "$line" | cut -d\ -f 1)
name=$(echo "$line" | cut -d\ -f 2- | cut -d"$DELIM" -f 1 | tr " " "-")
msg=$(echo "$line" | cut -d\ -f 2- | cut -d"$DELIM" -f 2- | sed 's/^\s*//g')
git tag -f -a "$name" -m "$msg" $hash
sleep 1
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment