Switch to latest git tag for repository https://github.com/IntersectMBO/cardano-node/:
git checkout $(curl -s https://api.github.com/repos/IntersectMBO/cardano-node/releases/latest | jq -r .tag_name)