How to ignore certain folders in HG?

拈花ヽ惹草 提交于 2019-12-24 10:17:58

问题


I have my project folder - Project. In Project I have other sub projects - SUBPROJECT1, SUBPROJECT2, SUBPROJECT3.

In each sub project I have folders, among which I have BIN and OBJ. However, I want the latter to be ignored such that when I commit I don`t have the changes made to BIN and OBJ. How can I do that?


回答1:


You'll need to edit your .hgignore file, and include the following lines:

glob:bin\
glob:obj\

You probably want at least these other things as well:

glob:*.user
glob:*.suo
glob:_ReSharper.*\

There's other examples out there of more complete .hgignore files.




回答2:


With .hgignore.



来源:https://stackoverflow.com/questions/4496967/how-to-ignore-certain-folders-in-hg

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!