Can I change the username on a mercurial changeset?

后端 未结 4 1100
挽巷
挽巷 2020-11-29 18:12

I didn\'t set the username on my development computer and made a few commits. Can I retroactively change the username so it\'s clear who committed these changesets?

4条回答
  •  情书的邮戳
    2020-11-29 18:58

    If you have a single outgoing changeset, there is a very simple way to do this:

    $ hg ci --amend --user "My Name " -X "**"
    

    The -X "**" option can be omitted if you don't have any local changes.

提交回复
热议问题