Skip to main content

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

Setting your commit email address

You can set the email address that is used to author commits on your GitHub Enterprise Server instance and on your computer.

About commit email addresses

GitHub uses your commit email address to associate commits with your account on your GitHub Enterprise Server instance. You can choose the email address that will be associated with the commits you push from the command line as well as web-based Git operations you make.

For web-based Git operations, you can set your commit email address on your GitHub Enterprise Server instance. For commits you push from the command line, you can set your commit email address in Git.

After changing your commit email address on GitHub Enterprise Server, the new email address will be visible in all of your future web-based Git operations by default. Any commits you made prior to changing your commit email address are still associated with your previous email address.

To ensure that commits are attributed to you and appear in your contributions graph, use an email address that is connected to your account on your GitHub Enterprise Server instance. For more information, see "Adding an email address to your GitHub account."

Setting your commit email address on GitHub

  1. 任意のページで、右上隅にあるプロファイルの画像をクリックし、次に[設定]をクリックします。

    ユーザバーの [Settings(設定)] アイコン

  2. In the left sidebar, click Emails. Emails tab

  3. [メール アドレスの追� ] にメール アドレスを入力し、 [追� ] をクリックします。 メールの追� ボタン

  4. "Primary email address(プライマリメールアドレス)"リストで、WebベースのGit操作と関連づけたいメールアドレスを選択してく� さい。 プライマリ メール アドレスの選択

Setting your commit email address in Git

You can use the git config command to change the email address you associate with your Git commits. The new email address you set will be visible in any future commits you push to your GitHub Enterprise Server instance from the command line. Any commits you made prior to changing your commit email address are still associated with your previous email address.

Setting your email address for every repository on your computer

  1. [ターミナル][ターミナル][Git Bash] を開きます。
  2. Gitでメールアドレスを設定してく� さい。 任意のメール アドレスを使用できます。
    $ git config --global user.email "YOUR_EMAIL"
  3. Git で正しくメールアドレスが設定されたことを確認してく� さい。
    $ git config --global user.email
    email@example.com
  4. GitHub Enterprise Server のアカウントにメール アドレスを追� して、コミットが自分に帰属し、自分のコントリビューション グラフに表示されるようにします。 詳細については、「GitHub アカウントへのメール アドレスの追� 」を参照してく� さい。

Setting your email address for a single repository

GitHub Enterprise Server uses the email address set in your local Git configuration to associate commits pushed from the command line with your account on your GitHub Enterprise Server instance.

You can change the email address associated with commits you make in a single repository. This will override your global Git configuration settings in this one repository, but will not affect any other repositories.

  1. [ターミナル][ターミナル][Git Bash] を開きます。
  2. Change the current working directory to the local repository where you want to configure the email address that you associate with your Git commits.
  3. Gitでメールアドレスを設定してく� さい。 任意のメール アドレスを使用できます。
    $ git config user.email "YOUR_EMAIL"
  4. Git で正しくメールアドレスが設定されたことを確認してく� さい。
    $ git config user.email
    email@example.com
  5. GitHub Enterprise Server のアカウントにメール アドレスを追� して、コミットが自分に帰属し、自分のコントリビューション グラフに表示されるようにします。 詳細については、「GitHub アカウントへのメール アドレスの追� 」を参照してく� さい。