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

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

在hg中输入commit 指令时,如果出现下述结果:

$ hg commit

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

则按照下述步骤进行设置

Step 1:在当前目录中输入:

$ cd .hg

Step 2:修改在.hg目录下的hgrc文件:

$ notepad hgrc

hgrc文件的内容为:


[paths]
default = http://www.selenic.com/repo/hello

Step 3:在该文件中加入下述代码:

[ui]
username = Ethan Zhang <[email protected]>

username后面可以是只有名称或E-mail,上面是完整的显示方式。

你可能感兴趣的:(config)