有趣的是,当为Mercurial添加.hgignore时,此文件本身显示为“?".处于汞状态? [英] funny that when .hgignore is added for Mercurial, this file itself shows up as "?" in hg status?

查看:83
本文介绍了有趣的是,当为Mercurial添加.hgignore时,此文件本身显示为“?".处于汞状态?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

正常吗?因此,您只需要在列表中添加\.hgignore即可忽略自身?

Is it normal? So you just need to add \.hgignore to the list to ignore itself?

推荐答案

是的,但是您不想忽略.hgignore文件.当一个新人签出您的存储库时,您是否不希望他们获得忽略文件列表?相反,请执行hg add .hgignore; hg commit.

Yes, but you don't want to ignore the .hgignore file. When a new person checks out your repository, don't you want them to get your ignored-files list? Instead, do hg add .hgignore; hg commit.

底线:.hgignore的跟踪与存储库中的任何其他文件一样.

Bottom line: .hgignore is tracked like any other file in the repository.

这篇关于有趣的是,当为Mercurial添加.hgignore时,此文件本身显示为“?".处于汞状态?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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