Skip to main content

Diese Version von GitHub Enterprise Server wird eingestellt am 2026-03-17. Es wird keine Patch-Freigabe vorgenommen, auch nicht für kritische Sicherheitsprobleme. Für bessere Leistung, verbesserte Sicherheit und neue Features aktualisiere auf die neueste Version von GitHub Enterprise Server. Wende dich an den GitHub Enterprise-Support, um Hilfe zum Upgrade zu erhalten.

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

Setting your commit email address on GitHub

  1. Klicke in der oberen rechten Ecke einer Seite auf GitHub auf dein Profilbild und dann auf Settings.

  2. Klicke im Abschnitt „Access“ der Randleiste auf Emails.

  3. Gib in „E-Mail-Adresse hinzufügen“ deine E-Mail-Adresse ein, und klicke auf Hinzufügen.

  4. Wähle im Dropdownmenü „Primäre E-Mail-Adresse“ die E-Mail-Adresse aus, die du mit deinen webbasierten Git-Operationen verknüpfen möchtest.

    Screenshot: Einstellungsseite „E-Mail“. Unter „Primäre E-Mail-Adresse“ ist ein Dropdownmenü mit der E-Mail-Adresse von Octocat orange umrandet.

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. Öffne TerminalTerminalGit Bash.

  2. Lege in Git eine E-Mail-Adresse fest. Du kannst eine beliebige E-Mail-Adresse verwenden.

    git config --global user.email "YOUR_EMAIL"
    
  3. Bestätige, dass Du die E-Mail-Adresse in Git richtig eingegeben hast:

    $ git config --global user.email
    email@example.com
    
  4. Füge die E-Mail-Adresse zu deinem Konto auf GitHub hinzu, damit dir deine Commits zugeordnet und in deinem Beitragsdiagramm angezeigt werden. Weitere Informationen finden Sie unter 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. Öffne TerminalTerminalGit 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. Lege in Git eine E-Mail-Adresse fest. Du kannst eine beliebige E-Mail-Adresse verwenden.

    git config user.email "YOUR_EMAIL"
    
  4. Bestätige, dass Du die E-Mail-Adresse in Git richtig eingegeben hast:

    $ git config user.email
    email@example.com
    
  5. Füge die E-Mail-Adresse zu deinem Konto auf GitHub hinzu, damit dir deine Commits zugeordnet und in deinem Beitragsdiagramm angezeigt werden. Weitere Informationen finden Sie unter Adding an email address to your GitHub account.

Next steps

For reference information, see Referenz zu E-Mail-Adressen.

To learn more about using a private email address, see Referenz zu E-Mail-Adressen.