As a site administrator, you can view a list of Git push operations for any repository on your GitHub Enterprise instance.

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
  • what the originating IP address was
  • the Git client used to push
  • the SHA hashes from before and after the operation

Via a web browser

  1. Open a repository's page in your browser.
  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

Via the command-line

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