This version of GitHub Enterprise will be discontinued on This version of GitHub Enterprise was discontinued on 2020-08-20. No patch releases will be made, even for critical security issues. For better performance, improved security, and new features, upgrade to the latest version of GitHub Enterprise. For help with the upgrade, contact GitHub Enterprise support.

Article version: Enterprise Server 2.18

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

Did this doc help you?

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"

Did this doc help you?

Ask a human

Can't find what you're looking for?

Contact us