3
In a project there are some files that need editing to run the local server, such as .htaccess
, config.php
, among others.
In the branch master
, We keep these files with the data in production. There are some collaborators who have different configurations to run a server locally, so they each work with different data in some files.
In this case, I would like to keep some files configured for my local machine without the need to do commit
and not "mess up" the code of the branch master
in an eventual merge
.
The .gitignore
delete these files in the repository. Is there any other solution? How is your working method to solve this problem?
You could put a
pre-commit hook
to remove files from an eventualcommit
. Reference (English): http://githooks.com/– Otávio