Last active
August 31, 2023 20:48
-
-
Save renegarcia/33455efb57d69a7adc2b5505f23bd883 to your computer and use it in GitHub Desktop.
Update python anywhere site to the latest commit tagged.
This file contains 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 | |
$TARGET="the absolute path to the directory hosting your project" | |
cd $TARGET | |
git fetch --all --tags | |
latestTag=`git describe --tags $(git rev-list --tags --max-count=1)` | |
git checkout tags/$latestTag -b $latestTag |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment