I need to obtain the commit count from a Git repository. How can I do this with a git command without downloading the entire commit history?
git clone --bare --filter=tree:0 u://r/l
The main hosting services support filtering, if wherever's hosting your repo doesn't you'll need help from the administrators.