如何将.hgignore添加到我的Mercurial文件夹? [英] How to add .hgignore to my Mercurial folder?

查看:119
本文介绍了如何将.hgignore添加到我的Mercurial文件夹?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在学习使用Mercurial,其学习曲线非常简单。但我的问题之一是,我不能将.hgignore文件添加到Mercurial文件夹。 Windows(7)不允许我这样做,当我运行命令


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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆