Skip to content

Latest commit

 

History

History
54 lines (45 loc) · 1.75 KB

File metadata and controls

54 lines (45 loc) · 1.75 KB
title intro redirect_from versions type topics
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
/admin/user-management/viewing-push-logs
/admin/user-management/monitoring-activity-in-your-enterprise/viewing-push-logs
/admin/monitoring-activity-in-your-enterprise/exploring-user-activity/viewing-push-logs
ghes
*
how_to
Auditing
Enterprise
Git
Logging

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

{% ifversion repository-activity-view %} {% data reusables.repositories.activity-view %} For more information, see AUTOTITLE. {% endif %}

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="Site admin" %}. {% data reusables.enterprise_site_admin_settings.security-tab %}
  4. In the left sidebar, click Push Log.

{% ifversion ghes %}

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 OWNER/REPOSITORY -c "cat audit_log"

{% endif %}