Skip to content

Instantly share code, notes, and snippets.

@timblair
Created March 16, 2012 10:03
Show Gist options
  • Save timblair/2049386 to your computer and use it in GitHub Desktop.
Save timblair/2049386 to your computer and use it in GitHub Desktop.
A helper script to manually tag a code release.
#!/bin/bash
if [ $# -ne 1 ]; then
echo "Please supply a commit SHA to tag."
exit 1
fi
git tag -af deployed $1 -m "Deployed to production." && git push origin tag deployed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment