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
If you want to see a detailed history of changes to a repository, you can use the activity view. The activity view displays all pushes, merges, force pushes, and branch changes, and associates these changes with commits and authenticated users. For more information, see Using the activity view to see changes to a repository.
Viewing a repository's push logs
- Sign into GitHub Enterprise Server as a site administrator.
- Navigate to a repository.
- In the upper-right corner of the repository's page, click .
- In the upper-right corner of the page, click Security.
- In the left sidebar, click Push Log.
Viewing a repository's push logs on the command-line
-
SSH into your GitHub Enterprise Server instance. If your instance comprises multiple nodes, for example if high availability or geo-replication are configured, SSH into the primary node. If you use a cluster, you can SSH into any node. Replace HOSTNAME with the hostname for your instance, or the hostname or IP address of a node. For more information, see "Accessing the administrative shell (SSH)."
Shell ssh -p 122 admin@HOSTNAME
ssh -p 122 admin@HOSTNAME
-
In the appropriate Git repository, open the audit log file:
ghe-repo OWNER/REPOSITORY -c "cat audit_log"