document updated 13 years ago, on Jan 14, 2011
What if you want to checkin only specific files within a directory, but not everything (say, have it ignore binary files)?
- first, a cautionary warning:
- a common way to do this is to .hgignore everything, and then add back specific exceptions with `hg add`.
[1]
[2]
[3]
- if you wanted to make a script that uses more complex rules to decide what to `hg add`, you can put it in the "pre-commit" hook
[1]
[2]
- note that there IS an `hg forget`, however, there are some caveats: