Created
August 31, 2017 09:45
-
-
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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