circuitpython/tools/git-checkout-latest-tag.sh

4 lines
101 B
Bash
Executable File

#!/bin/bash
git fetch --tags
git checkout $(git describe --tags `git rev-list --tags --max-count=1`)