Last active
December 15, 2021 11:28
-
-
Save emailrhoads/102931f6b83699ffd86a1c188d4e6a47 to your computer and use it in GitHub Desktop.
[New Release Tag] #git
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
| #!/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