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
- 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 left sidebar, click Push Log.
Viewing a repository's push logs on the command-line
-
お使いの GitHub Enterprise Server インスタンス に SSH で接続します。 インスタンスが複数のノードで構成されている場合は (高可用性や geo レプリケーションが構成されている場合など)、プライマリ ノードに SSH 接続します。 クラスターを使用する場合は、任意のノードに SSH 接続できます。 SSH アクセスについて詳しくは、「管理シェル (SSH) にアクセスする」をご覧ください。
ssh -p 122 admin@HOSTNAME
-
In the appropriate Git repository, open the audit log file:
ghe-repo OWNER/REPOSITORY -c "cat audit_log"