Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在提交控制台中,如何过滤所有由 开始的文件assets?所以assets/*会过滤,protected/assets/*不会。
assets
assets/*
protected/assets/*
我试过^assets过滤所有文件。
^assets
怎么样^assets/*?这将告诉 Mercurial 忽略下面的任何内容,assets但要跟踪nbproject/protected/assetsor下的文件protected/assets。您的屏幕截图表明 Mercurialassets之前一直在跟踪文件;如果您不想再让 Mercurial 跟踪它们,但想保留本地副本,请运行hg forget
^assets/*
nbproject/protected/assets
protected/assets
hg forget