5 ms·git ls-remote will help you to get the hash of HEAD. It's much cheaper than doing a zero-depth clone.by yosh 16y agogit ls-remote will help you to get the hash of HEAD. It's much cheaper than doing a zero-depth clone.