Mercurial: How to ignore changes to a tracked file

Using a file template is definitely the best solution.
For example, if you have a database.ini file, commit a database.ini.template file and ignore database.ini in .hgignore

Leave a Comment