0

In tortoisehg, i would like to add home/hello.php in .hgignore files but i don't know how to do this? It doesn't work. With somme regular expression? I try home/hello.php in hgignore but it doesn't ignore anymore. Someone have idea?

user2969259
  • 13
  • 2
  • 6

1 Answers1

1

I use glob syntax instead of regex because... well, regexes are scary demons. The following .hgignore file would ignore home/hello.php:

# use glob syntax
syntax: glob

# Project-specific files below here...
home/hello.php

You can find some fine examples of pre-made .hgignore files for common programming environments, such as this Visual Studio one.

Community
  • 1
  • 1
mo.
  • 4,165
  • 3
  • 34
  • 45