Get latest tag version from git repo Posted by mholmes on 23 Apr 2015 in Activity log Note to self, because I'll forget: git ls-remote --tags https://github.com/TEIC/Stylesheets.git | egrep -o "([0-9]+\.)+[0-9]+" | sort -t . -k 1,1n -k 2,2n -k 3,3n | tail -n1 This will work assuming version numbers are x.y.z. This entry was posted by Martin and filed under Activity log.