In my git repository I use files with $Id$ content that shall get smudged/cleaned automatically. For this I configured .gitattributes to activate the i
$Id$
.gitattributes