I have created a default version of a file included in a git repository. It\'s important that when someone clones the repository, they get a copy of this file. However, I
I found a solution that works for my team. We share our githooks via symlinks and after adding a template file to git I added a pre-commit hook that checks whether the template file has been modified and if so I git reset -- templatefile.txt
. If it's the only changed file I also abort the commit.