abort: no username supplied (see “hg help config”)

前端 未结 6 2125
逝去的感伤
逝去的感伤 2020-12-23 08:31

I have added repository and at the time of commit I get error as

error:  abort: no username supplied (see \"hg help config\") 

I am not ge

6条回答
  •  被撕碎了的回忆
    2020-12-23 09:16

    On Windows, these configuration files are read:

    - "\.hg\hgrc"
    - "%USERPROFILE%\.hgrc"
    - "%USERPROFILE%\Mercurial.ini"
    - "%HOME%\.hgrc"
    - "%HOME%\Mercurial.ini"
    - "C:\Mercurial\Mercurial.ini"
    - "HKEY_LOCAL_MACHINE\SOFTWARE\Mercurial"
    - "\Mercurial.ini"
    

    On Unix, these files are read:

    - "/.hg/hgrc"
    - "$HOME/.hgrc"
    - "/etc/mercurial/hgrc"
    - "/etc/mercurial/hgrc.d/*.rc"
    - "/etc/mercurial/hgrc"
    - "/etc/mercurial/hgrc.d/*.rc"
    

    Include the following in one of these files above:

    [ui]
    username = Your Name 
    

提交回复
热议问题