Skip to main content

このバージョンの GitHub Enterprise サーバーはこの日付をもって終了となりました: 2023-09-25. 重大なセキュリティの問題に対してであっても、パッチリリースは作成されません。 パフォーマンスの向上、セキュリティの向上、新機能の向上を図るために、最新バージョンの GitHub Enterprise サーバーにアップグレードしてください。 アップグレードに関するヘルプについては、GitHub Enterprise サポートにお問い合わせください

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

  1. Sign into GitHub Enterprise Server as a site administrator.
  2. Navigate to a repository.
  3. In the upper-right corner of the repository's page, click .
  4. ページの右上隅にある [セキュリティ] をクリックします。 ユーザーまたはリポジトリの [サイト管理者] ページのヘッダーのスクリーンショット。 [セキュリティ] タブがオレンジ色の枠線で強調されています。
  5. In the left sidebar, click Push Log.

Viewing a repository's push logs on the command-line

  1. お使いの GitHub Enterprise Server インスタンス に SSH で接続します。 インスタンスが複数のノードで構成されている場合は (高可用性や geo レプリケーションが構成されている場合など)、プライマリ ノードに SSH 接続します。 クラスターを使用する場合は、任意のノードに SSH 接続できます。 SSH アクセスについて詳しくは、「管理シェル (SSH) にアクセスする」をご覧ください。

    ssh -p 122 admin@HOSTNAME
    
  2. In the appropriate Git repository, open the audit log file:

    ghe-repo OWNER/REPOSITORY -c "cat audit_log"