Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Change author in mercurial

Tags:

mercurial

I have commit my code on bitbucket from another computer and forgot to change the name from default to mine. How can i fix wrong name to mine. Thx in advance.

like image 498
gingray Avatar asked Dec 09 '11 09:12

gingray


People also ask

How do I change commit message in Mercurial?

Since version 2.2, the commit command has a --amend option that will fold any changes into your working directory into the latest commit, and allow you to edit the commit message. hg commit --amend can in fact be used on any changeset that is a (topological) branch head, that is, one that has no child changesets.

What is hg command?

Description. The hg command provides a command line interface to the Mercurial system.

What is hg init?

Hg Init: a Mercurial tutorial. Mercurial is a modern, open source, distributed version control system, and a compelling upgrade from older systems like Subversion. In this user-friendly, six-part tutorial, Joel Spolsky teaches you the key concepts.


1 Answers

The issue 3295 addresses your scenario: "Incorrect Author name while Pushing code to BitBucket repository"

The author string is something that comes from the configuration on your machine (since you are committing locally and pushing to Bitbucket).

You can set this string for Hg, this doc talks about doing that.
Similarly you can set the Git author, this doc talks about that.

As for the commits you have already pushed to Bitbucket Sebastian is right that you can just map your committer string to your user by clicking on the '?'.

If you go to the commits screen, you will see a '?', click it, and fill out your BB username on the left side, this will link your BB name to your entered commit name.

like image 181
VonC Avatar answered Sep 23 '22 07:09

VonC