Reputation: 17907
I have some files that are part of a project that have some minor modifications from their source in the repository to control settings specific to my development environment.
They are constantly listed as "modified" and are always left unstaged.
These files do not belong in a .gitignore, as far as I am aware, since they belong in the repository. I would like git to basically ignore the fact that they have been modified.
This must be a common scenario, and I am looking for the best-practice way to handle it.
Thanks!
Upvotes: 0
Views: 298
Reputation: 17455
Check git ignoring documentation.
Generally, you have three options:
core.excludesfile
setting..git/info/exclude
, not shared with other repo instances (and thus, other team members).gitignore
in a given location of the source tree.Upvotes: 1