Reputation: 1435
I need to retrieve all commits from Private repositories on github.
I already tried with with github API documentation. It provides the API for retrieving the public repository commits. https://api.github.com/repos/:owner/:repo/commits
Anybody can help me for taking all commits from private repositories?
Upvotes: 6
Views: 3448
Reputation: 1505
You can also create Personal access tokens
for specific use... here.
using postman:
https://api.github.com/repos/:owner/:repo/commits
Upvotes: 0
Reputation: 1324576
A private repository means you need to authenticate in order to execute your query (here getting the commits).
This should work, if you own the private repo:
curl -u 'username:password' https://api.github.com/repos/:owner/:repo/commits
Upvotes: 5