In GitHub, is there a way to see all (recent) commits on all branches?

This is an old feature of GitHub but not really that intuitive.

Using the GitHub website:

  1. Click a project
  2. Click the 'Insights' tab (moved inside the Meatballs menu)
  3. Click 'Network'
  4. Click on the 'node/circle' for each commit to go to that commit.

Diagram below. enter image description here Diagram showing all commits in a GitHub project

Additionally, you can drag to the left to see all commits throughout time for all forks and branches.


The user interface in GitHub does not currently support a way to see your commits in a branch from the code tab. However, I observed that when I select a branch from the branch selector dropdown, I see the following URL:

// This shows me all commits from all users in the branch called "2.2-stable"
https://github.com/jquery/jquery/commits/2.2-stable

If I click on a username in the list of commits, I observe the following URL:

//This shows me the list of commits from the user "mgol" in the master branch (default branch)
https://github.com/jquery/jquery/commits?author=mgol

So, I thought to myself, why not try to add the query string ?author=mgol to the URL that showed commits on a specific branch:

Solution:

// Show me the list of commits from the user "mgol" on the branch called "2.2-stable"
https://github.com/jquery/jquery/commits/2.2-stable?author=mgol

Again, the user interface has no button that lets you see this view (to the best of my knowledge) but you can manipulate the query string to filter only what you want to see.


I guess there is no any button which shows you a complete list of commits. If you want to list all commits in a repo, you could browse the following URL:

https://github.com/username/repository/commits

You can view the list of commits by adding the word commits (in plural) at the end of repo URL .

Optionally, you could add some query string to narrow the results in the list. For example:

https://github.com/username/repository/commits?author=johndoe

Update

Thanks to @lii I update this post:

If you want to view all commits in a branch, browse the following URL:

https://github.com/username/repository/commits/branch-name

And you could narrow the list of commits by browsing the following URL:

https://github.com/username/repository/commits/branch-name?author=johndoe

Please note: this is not the right answer, although I hope it continues to be useful. NB it has been made a "Community" answer so I don't receive any points from upvotes

To see all commits for a specific branch (so this does NOT actually answer the original question, which is to see commits across all branches):

Click "Code" (left-most tab) on the main page for the repository. Under those 4 buttons ("master", "Go to file", "Add file", "Code") there is a blue rectangle. At the right end of that is a clock icon and a number. If the viewport of your browser is wide enough it even includes (hurrah) the word "commits". This is a link. Click and ENJOY!!!

NB the URL for this page is like this: https://github.com/myProfile/myRepo/commits/master

Example screenshot

Tags:

Github