Skip to main content

Эта версия GitHub Enterprise Server была прекращена 2024-03-26. Исправления выпускаться не будут даже при критических проблемах безопасности. Для повышения производительности, повышения безопасности и новых функций выполните обновление до последней версии GitHub Enterprise Server. Чтобы получить справку по обновлению, обратитесь в службу поддержки GitHub Enterprise.

Почему мои фиксации связаны с неправильным пользователем?

GitHub Enterprise Server использует адрес электронной почты в заголовке фиксации, чтобы связать фиксацию с пользователем GitHub. Если фиксации связаны с другим пользователем или не связаны с пользователем вообще, может потребоваться изменить параметры конфигурации локальной версии Git, добавить адрес электронной почты в параметры электронной почты учетной записи или сделать оба.

Note: If your commits are linked to another user, that does not mean the user can access your repository. A user can only access a repository you own if you add them as a collaborator or add them to a team that has access to the repository.

Commits are linked to another user

If your commits are linked to another user, that means the email address in your local Git configuration settings is connected to that user's account on GitHub Enterprise Server. In this case, you can change the email in your local Git configuration settings and add the new email address to your account on your GitHub Enterprise Server instance account to link future commits to your account.

  1. To change the email address in your local Git configuration, follow the steps in "Setting your commit email address". If you work on multiple machines, you will need to change this setting on each one.
  2. Add the email address from step 2 to your account settings by following the steps in "Adding an email address to your GitHub account".

Commits you make from this point forward will be linked to your account.

Commits are not linked to any user

If your commits are not linked to any user, the commit author's name will not be rendered as a link to a user profile. To check the email address used for those commits and connect commits to your account, take the following steps.

  1. On your GitHub Enterprise Server instance, navigate to the main page of the repository.

  2. On the main page of the repository, above the file list, click commits.

    Screenshot of the main page for a repository. A clock icon and "178 commits" is highlighted with an orange outline.

  3. To navigate to a specific commit, click the commit message for that commit.

    Screenshot of a commit in the commit list for a repository. "Update README.md" is highlighted with an orange outline.

  4. To read a message about why the commit is not linked, hover over the blue to the right of the username.

If your local Git configuration contained a generic email address, or an email address that was already attached to another user's account, then your previous commits will not be linked to your account. While Git does allow you to change the email address used for previous commits, we strongly discourage this, especially in a shared repository.

Further reading