https://docs.joinmastodon.org/admin/install/ has this: ``` git checkout $(git tag -l | grep -v 'rc[0-9]*$' | sort -V | tail -n 1) ``` That last part computes into v4.2.0-beta3 but it should be release. This might work: ``` git tag -l | grep -v 'rc[0-9]*$' | grep -v 'beta[0-9]*$'| sort -V | tail -n 1 ```