ls-remote
- Get remote information
# Get the hash of the latest commit
git ls-remote https://github.com/t2linux/linux-t2-patches.git refs/heads/main | cut -d$'\t' -f1
# Get the hash of the latest commit
git ls-remote https://github.com/t2linux/linux-t2-patches.git refs/heads/main | cut -d$'\t' -f1