Thursday, May 16, 2013

Tortoise HG (Mercurial) – how to ignore entire folders



In my OS is  Windows 07 and I have used Tortoise HG .
How to I ignored the entire Folders.

  >> cd  path /your/repo

then you will create a .hgignore file in your repository.please use below commands.

       >> notepad  .hgignore

open the notepad and save this file.Please make sure this file save your repository folder.
Then Put the following lines.
Suppose you have used many folders.you need to ignore the two folders only.
    1)     assets/images
    2)    assets/css/images

Please put the below code to  .hgignore file.

Code:
syntax:glob

assets/images/*

assets/css/images/*

Screenshot :
 

No comments:

Post a Comment