👋 We've unified all of GitHub's product documentation in one place! Check out the content for REST API, GraphQL API, and Developers. Learn more on the GitHub blog.
Article version: Enterprise Server 2.21

Viewing push logs

Site administrators can view a list of Git push operations for any repository on your GitHub Enterprise Server instance.

In this article

Were you able to find what you were looking for?

Push log entries show:

  • Who initiated the push
  • Whether it was a force push or not
  • The branch someone pushed to
  • The protocol used to push
  • The originating IP address
  • The Git client used to push
  • The SHA hashes from before and after the operation

Viewing a repository's push logs

  1. Navigate to a repository.
  2. In the upper-right corner of any page, click .
    Rocketship icon for accessing site admin settings
  3. In the upper-right corner of the page, click Security.
    Security tab
  4. In the left sidebar, click Push Log.
    Push log tab

Viewing a repository's push logs on the command-line

  1. SSH into your appliance. For more information, see "Accessing the administrative shell (SSH)."
  2. In the appropriate Git repository, open the audit log file:
    ghe-repo owner/repository -c "less audit_log"

Were you able to find what you were looking for?

Ask a human

Can't find what you're looking for?

Contact us