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

4 lines
101 B
Bash
Raw Normal View History

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