Skip to content

Instantly share code, notes, and snippets.

@emailrhoads
Last active December 15, 2021 11:28
Show Gist options
  • Select an option

  • Save emailrhoads/102931f6b83699ffd86a1c188d4e6a47 to your computer and use it in GitHub Desktop.

Select an option

Save emailrhoads/102931f6b83699ffd86a1c188d4e6a47 to your computer and use it in GitHub Desktop.
[New Release Tag] #git
#!/bin/bash
# IN CMIT/CRAPE
TAG_LABEL=`date "+%Y%m%d.%H%M"`
git checkout master
git pull
git tag -a $TAG_LABEL -m "latest"
git push origin $TAG_LABEL
git checkout master
# IN GITLAB DEPLOY
git checkout master
git pull
git checkout -b version_xxx
cd code
git tag
git checkout <tag>
cd ..
git add code
git commit -m '<tag>'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment