Tim
Tim

Reputation: 99408

How can i view all the commits of a branch on GitHub?

In GitHub, how can I get a list of commits on a branch?

When i open the webpage for a repository, i click the "branches" tab among "commits", "releases" and "contributor" tabs. Then i click the branch in interest, but I don't see a list of commits on the webpage of the branch.

If there is a pull request for merging the branch into another branch, when I open the webpage for the pull request, I see the "Commits" tab among "Conversations" and "Files Changed" tabs. Clicking "Commits" tab will show me a list of commits on the branch.

So GitHub seems to organize the commits on pull request level, rather than on branch level. Is it correct?

Thanks.

Upvotes: 12

Views: 13303

Answers (3)

FreeStyler
FreeStyler

Reputation: 317

On main page of repo find commits word on link, and click, or use link https://github.com/<user>/<repo>/commits/<branch>

Upvotes: 0

Abhijit Sarkar
Abhijit Sarkar

Reputation: 24518

There’s now Activity on the repo home page, from where you can filter commits by branch, user or time.

https://github.com/<user>/<repo>/activity

Upvotes: 0

Nicky McCurdy
Nicky McCurdy

Reputation: 19534

When you have opened the branch you want in GitHub's code tab, click on [number] commits and you'll see the full commit history starting from that branch. Note that there will be overlap between branches that are based on each other because unlike a pull request, this is a full history view instead of a comparison.

Upvotes: 12

Related Questions