learning
learning

Reputation: 11725

How to ignore certain folders in HG?

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?

Upvotes: 1

Views: 399

Answers (2)

Lasse V. Karlsen
Lasse V. Karlsen

Reputation: 391276

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.

Upvotes: 3

Ignacio Vazquez-Abrams
Ignacio Vazquez-Abrams

Reputation: 798506

With .hgignore.

Upvotes: 0

Related Questions