Skip to main content

Setting your commit email address

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

Platform navigation

About commit email addresses

GitHub uses your commit email address to associate commits with your account on GitHub. 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 GitHub. 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, 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 GitHub. For more information, see Adding an email address to your GitHub account.

Setting your commit email address on GitHub

  1. GitHub의 페이지 오른쪽 상단에서 프로필 사진을 선택한 다음, 설정을 선택합니다.

  2. 사이드바의 "액세스" 섹션에서 이메일을 클릭합니다.

  3. “이메일 주소 추가”에 이메일 주소를 입력하고 추가를 클릭합니다.

  4. “기본 메일 주소” 드롭다운 메뉴에서 웹 기반 Git 작업과 연결할 메일 주소를 선택합니다.

    "메일" 설정 페이지의 스크린샷 "기본 메일 주소" 아래에 Octocat의 메일 주소로 레이블이 지정된 드롭다운 메뉴가 주황색으로 표시됩니다.

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 GitHub 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에서 계정에 메일 주소를 추가하여 커밋이 귀속되고 기여 그래프에 표시되도록 합니다. 자세한 내용은 Adding an email address to your GitHub account을(를) 참조하세요.

Setting your email address for a single repository

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

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에서 계정에 메일 주소를 추가하여 커밋이 귀속되고 기여 그래프에 표시되도록 합니다. 자세한 내용은 Adding an email address to your GitHub account을(를) 참조하세요.