Windows7下 去掉不要HG管理的文件夹的方法

在我们进行源代码管理的时候,通常 bin 和 obj 是不需要check in到 SCM中的。对于 HG是如何解决这个问题呢

假设你的目录结构是:

-doc

-src

–bin

–obj

那么你需要好创建一个.hgignore 和src在同一个目录下。

在Windows7 下面 要通过  cmd>   notpad .hgignore 创建 .hgignore 文件

里面是需要加入:

 

syntax: glob
obj
bin
就可以了。

 

Did you enjoy this post? Why not leave a comment below and continue the conversation, or subscribe to my feed and get articles like this delivered automatically to your feed reader.

Comments

No comments yet.

Leave a comment

(required)

(required)