Skip to main content

Analyzing changes to a repository's content

You can see the changes to the content of a repository by analyzing the repository's commits, commit frequency, and content additions and deletions.

Who can use this feature?

This repository insights graph is available in public repositories with GitHub Free and GitHub Free for organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub Enterprise Cloud, and GitHub Enterprise Server. For more information, see "About repository graphs" and "GitHub’s plans."

Visualizing commits in a repository

Note: Certain contributor, commit, and code frequency insights are only available for repositories that have less than 10,000 commits.

You can see all commits made to a repository in the past year (excluding merge commits) in the Commit graph.

The top graph shows commits for the entire year by week. The bottom graph shows the average number of commits by day of the week for the selected week.

Screenshot of both the repository commit graphs, showing a yearly and then a weekly view.

Accessing the commits graph

  1. On GitHub.com, navigate to the main page of the repository.

  2. Under your repository name, click Insights.

    Screenshot of the main page of a repository. In the horizontal navigation bar, a tab, labeled with a graph icon and "Insights," is outlined in dark orange.

  3. In the left sidebar, click Commits. Screenshot of the left sidebar. The "Commits" tab is highlighted with a dark orange outline.

Visualizing additions and deletion to content in a repository

Note: Certain contributor, commit, and code frequency insights are only available for repositories that have less than 10,000 commits.

The code frequency graph displays the content additions and deletions for each week in a repository's history.

Screenshot of the code frequency graph.

Accessing the code frequency graph

  1. On GitHub.com, navigate to the main page of the repository.

  2. Under your repository name, click Insights.

    Screenshot of the main page of a repository. In the horizontal navigation bar, a tab, labeled with a graph icon and "Insights," is outlined in dark orange.

  3. In the left sidebar, click Code frequency. Screenshot of the left sidebar. The "Code frequency" tab is highlighted with a dark orange outline.

If you want to see a detailed history of changes to a repository, you can use the activity view. The activity view displays all pushes, merges, force pushes, and branch changes, and associates these changes with commits and authenticated users. For more information, see "Using the activity view to see changes to a repository."