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.

1 Comment   [ + ] Show comment
  • There will be a strange response everytme from GItHub Support to use API.

    But how to use their API.
    Where there GET command will work??

    They never respond back for these questions. - ur00361883 4 years ago

Answers (0)

Be the first to answer this question

This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ