プッシュログの項目には次の情報が含まれています。
- プッシュを開始した人
- フォースプッシュであったかどうか
- プッシュされたブランチ
- プッシュするために使ったプロトコル
- プッシュ元の IP アドレス
- プッシュするために使った Git クライアント
- 操作前と操作後の SHA ハッシュ
リポジトリのプッシュログを表示する
- サイト管理者として GitHub Enterprise Server にサインインします。
- リポジトリにアクセスします。
- In the upper-right corner of the repository's page, click .
- ページ右上にある、 Security(セキュリティ) をクリックしてください。
- 左のサイドバーで、Push Log(プッシュログ) をクリックしてください。
コマンドラインでリポジトリのプッシュログを表示する
-
GitHub Enterprise ServerインスタンスにSSHでアクセスしてください。 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. For more information about SSH access, see "Accessing the administrative shell (SSH)."
$ ssh -p 122 admin@HOSTNAME
-
適切な Git リポジトリで Audit log ファイルを開いてください。
ghe-repo owner/repository -c "cat audit_log"