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   [ - ] Hide 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.
Please log in to comment

There are no answers at this time
Answer this question or Comment on this question for clarity