How do I see how many commits I made this year?

For one repository, ask git: the command below counts your commits since 1 January. For everything you did on GitHub in 2026, pick the year beside the contribution graph on your profile, or type your username into gitsquashed.com to get the total with your streaks and busiest days.

github.com/

In one repository, with git

Run this inside the repository. Swap in the email you commit with.

git rev-list --count --since="2026-01-01" --author="you@example.com" HEAD

Everyone in a repository, ranked

This lists each author with their number of commits since the start of the year.

git shortlog -sn --since="2026-01-01"

Across all of GitHub

On your profile, choose 2026 in the year list beside the contribution graph. The heading gives your contributions for that year, which include commits, pull requests, issues and reviews.

gitsquashed reads that same calendar and adds what the profile does not show at a glance: your longest streak, your biggest day, how many days you showed up, and the repositories you committed to most.

What each number means

The git commands count commits in one repository, on the branch you are on. The GitHub number counts contributions across every public repository, on default branches only. They answer different questions, so they will not match.

More questions

How do I get a GitHub Wrapped for 2026?

What counts as a contribution on GitHub?

Why is my GitHub contribution count different in different places?