如何将.hgignore添加到我的Mercurial文件夹? [英] How to add .hgignore to my Mercurial folder?
本文介绍了如何将.hgignore添加到我的Mercurial文件夹?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
hg add .hgignore
,它返回错误:
系统找不到指定的
文件。
如何创建/添加此文件?
解决方案
执行
touch .hgignore
或
echo> .hgignore
在需要的目录中
I'm learning to use Mercurial, and its learning curve is pretty straightforward. But one of my problem is, I can't add the .hgignore file to Mercurial folder. Windows (7) does not allow me to do this, and when I run the command
hg add .hgignore
, it returns error:
the system cannot find the specified file.
How can I create/add this file?
解决方案
Execute
touch .hgignore
or
echo "" > .hgignore
in the needed directory
这篇关于如何将.hgignore添加到我的Mercurial文件夹?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文