Skip to content

Instantly share code, notes, and snippets.

@lovelock
Created August 31, 2017 09:45
Show Gist options
  • Save lovelock/739dfdd901333e6e21d814a912683905 to your computer and use it in GitHub Desktop.
Save lovelock/739dfdd901333e6e21d814a912683905 to your computer and use it in GitHub Desktop.
rename it to gt and put it at /usr/local/bin and you can use gt to create a git tag with current minute
#!/usr/bin/env bash
if [ $# == 0 ]; then
echo "tag must be set\n"
exit 1
fi
NOW=$(date +%Y%m%d%H%M)
git tag ${NOW}_${1}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment