Skip to content

Instantly share code, notes, and snippets.

@asbjornenge
Created March 7, 2018 09:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save asbjornenge/5305afe2bcabd9f4d9b972c3c254e233 to your computer and use it in GitHub Desktop.
Save asbjornenge/5305afe2bcabd9f4d9b972c3c254e233 to your computer and use it in GitHub Desktop.
Small fish script to facilitate deployment using git tags
function gitploy
if count $argv > /dev/null
set -x VERSION $argv[1]
echo "Deploying version $VERSION"
git tag -a "$VERSION" -m "Version $VERSION"; and git push; and git push --tags
else
echo "Missing version"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment