author not mapped to bitbucket user
Asked Answered
S

2

7

I am having a trouble with old repository in bitbucket which is: for all my old commit before 2018 I receive this error message

enter image description here the point is it is me who pushed those commits. is there any way that I can map those commits to my account? thanks in advance.

Sawicki answered 22/5, 2018 at 3:6 Comment(0)
D
5

That means the author settings (git config user.name and git config user.email) was incorrect for those past commits.

You would need to change the email on past commits (as in here) and then force push that branch back to your remote repo, in order for those commits to be associated to your account.
If you are the only one working on that repository, this can be done without any adverse consequences.

Dogeatdog answered 22/5, 2018 at 4:33 Comment(0)
C
1

Alternatively, you don't have to rewrite history (which will, among other things, break all current tags, or at least knock them off-branch) if you just file your old e-mail address as an "alias".

To add an email alias:

  1. Select the Settings cog ⚙️ on the top navigation bar.

  2. Select Personal Bitbucket settings from the Settings dropdown menu.

  3. Select Email aliases under General.

  4. From the Email aliases page, enter your email address in the Enter email address field.

  5. Click Add.

To remove an email alias, click the x icon to the left of the alias.

Cuticle answered 7/2 at 22:50 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.