Get the commit count without pulling data
We are trying to integrate the GitHub repo with our python scripts.
Now our requirement is to the commit count of a repo.
For that we are using
git log –oneline | wc -l
This command will get the commit count from the local repo.
We are using this command till today after “git pull”
But, now our requirement is to get the commit count from github remote repo directly instead of pulling the data and counting from it.
Is there any command you can suggest for that.
Be the first to answer this question