Skip to content

Instantly share code, notes, and snippets.

@renegarcia
Last active August 31, 2023 20:48
Show Gist options
  • Save renegarcia/33455efb57d69a7adc2b5505f23bd883 to your computer and use it in GitHub Desktop.
Save renegarcia/33455efb57d69a7adc2b5505f23bd883 to your computer and use it in GitHub Desktop.
Update python anywhere site to the latest commit tagged.
#!/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