简体   繁体   中英

Force Mercurial (Hg) to add new files automatically

我正在寻找与.ignore文件相反的机制,它应该自动添加给定模式的所有文件,例如*.tex用于任何LaTeX文档项目,或者*.def用于任何由OASIS添加的文件(MS)访问插件以进行版本控制)。

hg add with no arguments will add all files not explicitly ignored. You can also use hg commit --addremove to add all unknown files (and remove all deleted files, ie hg rm any which hg status lists as '!') to do this automatically when committing.

Adding files only happens when you run hg add . If you want to add all files matching a pattern, use the --include ( -I ) switch.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM