.hgignore不为我工作 [英] .hgignore not working for me

查看:80
本文介绍了.hgignore不为我工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试为项目设置.hgignore. .hgignore文件位于.hg文件旁边的项目根目录中.状态的输出如下,我想忽略sdcard.cydsn \ ARM_GCC_441 \ Debug和sdcard.cydsn \ codegentemp目录中的所有文件.我已经尝试了正斜杠和反斜杠和通配符的各种组合,但无法使其正常工作.有什么建议吗?

I'm trying to setup .hgignore for a project. The .hgignore file is in the project root next to the .hg file. The output from a status is below, I'd like to ignore all files in the sdcard.cydsn\ARM_GCC_441\Debug and sdcard.cydsn\codegentemp directories. I've tried various combinations of forward/back slashes and wildcards but can't get it to work. Any suggestions?


C:\sdcard>hg st
M sdcard.cydsn\ARM_GCC_441\Debug\Clock_1.lst
M sdcard.cydsn\ARM_GCC_441\Debug\Clock_2.lst
M sdcard.cydsn\ARM_GCC_441\Debug\Cm3Start.lst
M sdcard.cydsn\ARM_GCC_441\Debug\Control_Reg_1.lst
M sdcard.cydsn\ARM_GCC_441\Debug\CyDmac.lst
M sdcard.cydsn\ARM_GCC_441\Debug\CyFlash.lst
M sdcard.cydsn\ARM_GCC_441\Debug\CyLib.lst
M sdcard.cydsn\ARM_GCC_441\Debug\CySpc.lst
M sdcard.cydsn\ARM_GCC_441\Debug\SPIM_1.lst
M sdcard.cydsn\ARM_GCC_441\Debug\SPIM_1_INT.lst
M sdcard.cydsn\ARM_GCC_441\Debug\SPIM_1_PM.lst
M sdcard.cydsn\ARM_GCC_441\Debug\TX.lst
M sdcard.cydsn\ARM_GCC_441\Debug\UART_1.lst
M sdcard.cydsn\ARM_GCC_441\Debug\UART_1_INT.lst
M sdcard.cydsn\ARM_GCC_441\Debug\UART_1_PM.lst
M sdcard.cydsn\ARM_GCC_441\Debug\clk.lst
M sdcard.cydsn\ARM_GCC_441\Debug\core_cm3.lst
M sdcard.cydsn\ARM_GCC_441\Debug\cyPm.lst
M sdcard.cydsn\ARM_GCC_441\Debug\cyfitter_cfg.lst
M sdcard.cydsn\ARM_GCC_441\Debug\cyutils.lst
M sdcard.cydsn\ARM_GCC_441\Debug\ff.lst
M sdcard.cydsn\ARM_GCC_441\Debug\main.lst
M sdcard.cydsn\ARM_GCC_441\Debug\miso.lst
M sdcard.cydsn\ARM_GCC_441\Debug\mmc.lst
M sdcard.cydsn\ARM_GCC_441\Debug\mosi.lst
M sdcard.cydsn\ARM_GCC_441\Debug\sdcard.a
M sdcard.cydsn\ARM_GCC_441\Debug\ss.lst
M sdcard.cydsn\codegentemp\lcpsoc3\index
M sdcard.cydsn\codegentemp\sdcard.ctl
M sdcard.cydsn\codegentemp\sdcard.cyfit
M sdcard.cydsn\codegentemp\sdcard.rpt
M sdcard.cydsn\codegentemp\sdcard.v
M sdcard.cydsn\codegentemp\sdcard.vh2
M sdcard.cydsn\codegentemp\sdcard_timing.xml
M sdcard.cydsn\sdcard.cyfit
M sdcard.cydsn\sdcard.cyprj
M sdcard.cydsn\sdcard.cyprj.sean
M sdcard.cydsn\sdcard.rpt
M sdcard.cywrk
M sdcard.cywrk.sean
? .hgignore

推荐答案

如果您已经在跟踪文件,则在进行跟踪之后

If you are already tracking the files, which you are, after you do a

hg add .hgignore

您将需要forget您不想再跟踪的文件. .hgignore不会获取您已经跟踪的忽略文件.

you will need to forget the files that you don't want to track anymore. .hgignore doesn't get ignore files you are already tracking.

这篇关于.hgignore不为我工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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