中止:未提供用户名(请参见"hg帮助配置") [英] abort: no username supplied (see "hg help config")
本文介绍了中止:未提供用户名(请参见"hg帮助配置")的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我已经添加了存储库,并且在提交时出现错误
I have added repository and at the time of commit I get error as
error: abort: no username supplied (see "hg help config")
我也没有在本地获取Mercurial.ini文件.有谁知道我如何解决Fedora上的此错误?
I am not getting Mercurial.ini file on my local as well. Does anyone know how I can resolve this error on Fedora?
推荐答案
要么将hgrc放入存储库的.hg目录中,要么将.hgrc(适用于Windows的hgrc)文件放入您的主目录中(然后它将覆盖您的所有项目) 在文件中,您应该写
Either put a hgrc in the .hg directory in your repo or put a .hgrc (hgrc for Windows) file in your home dir (then it covers all your projects) In the file you should write
[ui]
username = Your Name <your@mail>
这篇关于中止:未提供用户名(请参见"hg帮助配置")的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文