1.4 KiB
1.4 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. |
|
|
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
- Navigate to a repository. {% data reusables.enterprise_site_admin_settings.access-settings %} {% data reusables.enterprise_site_admin_settings.security-tab %}
- In the left sidebar, click Push Log.

{% if enterpriseServerVersions contains currentVersion %}
Viewing a repository's push logs on the command-line
- SSH into your appliance. For more information, see "[Accessing the administrative shell (SSH)](/enterprise/{{ currentVersion }}/admin/guides/installation/accessing-the-administrative-shell-ssh/)."
- In the appropriate Git repository, open the audit log file:
ghe-repo <em>owner</em>/<em>repository</em> -c "less audit_log"
{% endif %}