You can use the default section .hgrc:
[defaults] commit = -X thefileyouwanttoexclude
If you can retrain your fingers, the preferred way to do this is with an alias:
[alias] cmt = commit -X thefileyouwanttoexclude
then you start using hg cmt instead of hg cmt .
Ry4an brase
source share