What is the rest API to pull all the commit details from git for a particular branch

Hi,

I want to pull all the commit details for a particular branch using api. Please help me to find the proper rest api url through which I can pull all the commit details.

Thanks,

Ravi

Hi All,

Anybody is having idea on this. I already tried with “https://github.com/api/v3/repos/:repos/commits?sha=branchname” url to pull commit details for a particular branch. But it was giving all the commit details for that branch along with that it’s giving commit details for other branches also.

It would be more helpful If I get correct url to pull all the commit details for particular branch.

Thanks,

Ravi