This is a collection of tips and tricks to level up your git usage.
git remote show origin | grep 'HEAD' | cut -d':' -f2 | sed -e 's/^ *//g' -e 's/ *$//g'
git -c versionsort.suffix=- ls-remote --tags --sort=v:refname https://github.com/GitHooksToolbox/prompt-default-branch-commit-deprecated '*.*.*' | awk -F/ '/refs\/tags\// {print $3}' | tail -n1