I have a git
repository where I have kind of a template file which should be customized on a local basis on lots of computers. So what I'd like to achieve is that I add this file to the repository in an initial form, and then set the repository up to ignore any future changes to this specific file.
I've found several article suggesting using the update-index --skip-worktree
command, however that works only on a local, per cloned repository basis. What I'd like to have is a repository-level setup which would effect every future checkouts, clones, everything.
I've also tried adding the file to .gitignore
after having it in the repository, but that had no effect, git
was still tracking it.
Is there any way to achieve this?