1
0
mirror of synced 2026-01-08 12:01:53 -05:00
Files
docs/content/admin/user-management/viewing-push-logs.md
2021-01-26 17:40:56 +00:00

1.5 KiB

title, intro, redirect_from, versions
title intro redirect_from versions
Viewing push logs Site administrators can view a list of Git push operations for any repository on the enterprise.
/enterprise/admin/articles/viewing-push-logs/
/enterprise/admin/installation/viewing-push-logs
/enterprise/admin/user-management/viewing-push-logs
enterprise-server github-ae
* *

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. Sign into {% data variables.product.prodname_ghe_server %} as a site administrator.
  2. Navigate to a repository.
  3. In the upper-right corner of the repository's page, click {% octicon "rocket" aria-label="The rocket ship" %}. Rocketship icon for accessing site admin settings {% data reusables.enterprise_site_admin_settings.security-tab %}
  4. In the left sidebar, click Push Log. Push log tab

{% if enterpriseServerVersions contains currentVersion %}

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

{% data reusables.enterprise_installation.ssh-into-instance %}

  1. In the appropriate Git repository, open the audit log file:
ghe-repo <em>owner</em>/<em>repository</em> -c "less audit_log"

{% endif %}