在 Mercurial .hgrc 文件中设置用户名
我一直在浏览 SO 和 Google 来寻找解决我的基本问题的方法,但到目前为止我还没有运气。
我是 Mercurial 的新手,刚刚将其安装在我的 Mac 上。我将它用于个人版本控制,并且不会与中央服务器通信(尚)。
当我尝试提交文件时,我得到中止:未提供用户名(请参阅“hg help config”)。这个问题的常见解决方案是将以下内容放入 ~/.hgrc 中,
[ui]
username = Firstname Lastname <[email protected]>
我已经这样做了,但错误仍然存在。它只是不会读取该文件。有什么建议吗?
I have been browsing SO and Google for a solution to my basic problem, and so far I have had no luck.
I am brand new to Mercurial and have just installed it on my Mac. I am using it for personal version control and will not be communicating with a central server (yet).
When I try to commit files, I get abort: no username supplied (see "hg help config"). The common solution to this problem is putting the following in ~/.hgrc
[ui]
username = Firstname Lastname <[email protected]>
which I have done, but the error remains. It just won't read the file. Any suggestions?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
供将来参考:用于
查看
[ui]
部分中的设置以及查看 Mercural 读取的文件以获取配置设置。如果您需要再次调试此类情况,这应该会对您有所帮助。For future reference: use
to see the settings from the
[ui]
section and to see the files Mercural reads for configuration settings. That should help you along if you ever have to debug such a case again.