I\'m trying to keep 2 projects of website in one repository. This websites are mainly the same except template (html,css) files and few config files. The main site (which is
Here git-update-index - Register file contents in the working tree to the index.
git update-index --assume-unchanged
Example:-
git update-index --assume-unchanged somelocation/pom.xml
or
Add file paths in .gitignore