コミット メッセージに異なるユーザー名が表示されるのはなぜですか。

お困りですか?

アトラシアン コミュニティをご利用ください。

コミュニティに質問

プラットフォームについて: Cloud のみ - この記事は、 クラウド プラットフォームのアトラシアン製品にのみ適用されます。

   

ユーザーがローカル システムでコミットし、それらを Bitbucket Cloud にプッシュした場合、プッシュに関連付けられるユーザー アカウントはコミット データによって決定されます。

To ensure your commits in Bitbucket appear with the correct user, the email address you commit with locally must match a validated email address on your account. To associate your email address with local commits, Git allows you to configure a global username/email and an optional repository-specific username/email. If you don't specify repository-specific values, the commit defaults to using the global values you set.

たとえば、Bitbucket での検証済みのメール アドレスが joe.foot@gmail.com の場合、そのユーザー名でリポジトリ構成を設定できます。

Whether or not you set a repository-specific value, make sure you set your global username/email address. If the global default is not configured or if you haven't validated your email address, the committer appears as unknown next to your commit. In addition, if you have multiple Bitbucket accounts, you may mistakenly commit your code under an email address that maps to an account you didn't intend. To map existing commits on a repository to a different account, you can add aliases to the Username aliases of the repository. To set up a username alias, you must have admin rights to the repository.

Steps to add an alias to a repository

リポジトリにメール エイリアスを追加するにはまず、ユーザー情報を見つける必要があります。

  1. リポジトリの [コミット] 一覧から、そのユーザーがプッシュしたコミットをクリックします。

  2. コミット ページから、[raw コミットを表示] をクリックします。
    raw コミット文字列が表示されます。

  3. Search for the From line and copy the user details.

ユーザー情報を入手したら、それを Bitbucket のリポジトリに追加できます。

リポジトリへの管理アクセスを持つユーザーのみがユーザー名エイリアスを追加できます。追加されるユーザーには Bitbucket アカウントが必要です。

  1. From the repository, go to Repository settings.

  2. [ユーザー名のエイリアス] をクリックします。

  3. [ユーザー] 列から、コミットをプッシュするユーザーに関連付けたいユーザー アカウントを検索します。

  4. [エイリアス] 列で、raw コミットからコピーしたユーザー情報を貼り付けます。

  5. [追加] をクリックします。

[コミット] 一覧に戻ると、マッピングされたユーザー アカウントがコミットの横に表示されていることがわかります。 

You may need to clear your browser cache for the mapped user account to display properly.

When you make commits on your local system and push them to Bitbucket Cloud, the commit data determines which account name to attach to the push. To ensure your commits in Bitbucket appear with your user account, they must meet two conditions:

  1. You've configured Git with a global username/email address and an optional repository-specific username/email address, as described on this page.

  2. You've added the email address as an email alias and validated it. See Set email aliases.

メール アドレスをローカル コミットに関連付けるには、最初にグローバル ユーザー名 / メールを構成し、任意でリポジトリ固有のユーザー名 / メールを指定します。リポジトリ固有の値を指定しない場合、コミットは既定により、設定したグローバル値を使用します。

For more details on how to configure your DVCS username for commits please visit this page.

If the above instructions do not assist in resolving the issue, please raise a support ticket or raise a community support ticket for further assistance with this.

説明 コミット メッセージに異なるユーザー名が表示されるのはなぜですか。
製品Bitbucket Cloud





最終更新日: 2024 年 1 月 24 日

この内容はお役に立ちましたか?

はい
いいえ
この記事についてのフィードバックを送信する
Powered by Confluence and Scroll Viewport.