Mercurial 不忽略文件
我尝试了多种方法来阻止来自 Mercurial 的日志文件夹,但 hg status
仍然可以看到它。我有其他正在遵守的忽略命令,但由于某种原因该文件夹不会被忽略。我已经尝试过...
syntax: glob
sitename/system/logs
regexp:^sitename/system/logs$
glob:sitename/system/logs
尽管使用了所有这些方法,我仍然看到以下内容在 hg status
M sitename/system/logs/log-2010-11-03.php
M sitename/system/logs/log-2010-11-04.php
对我做错了什么有什么想法吗?
I've tried multiple ways to block a folder of logs from Mercurial but it continues to be seen by hg status
. I have other ignore commands that are being obeyed, but this folder for some reason won't be ignored. I've tried...
syntax: glob
sitename/system/logs
regexp:^sitename/system/logs$
glob:sitename/system/logs
Despite all of these methods in place I continue to see the following in hg status
M sitename/system/logs/log-2010-11-03.php
M sitename/system/logs/log-2010-11-04.php
Any ideas on what I'm doing wrong?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
是的。问题是你添加了该文件。这就是为什么您会看到
M
。停止跟踪该文件,然后您的忽略就会起作用。Yes. The problem is you added the file. That's why you see an
M
. Stop tracking the file, and then your ignore will work.