Our master has two files which contain DB settings (application.ini and legacy_bootstrap.ini). Due to some local issues I have had to change my local DB settings and modify these two files to reflect those changes. Both of these files are included in .gitignore but since they are being tracked it doesn't recognize the .gitignore.
I've tried the update-index --assume-unchanged
which seems to work fine until I switch branches and then I get an error notice that tells me I have to commit before switching branches. I have also tried the git reset --hard HEAD
and clear the GIT cache and still the same issues.
Looking for a solution here that would allow the file to remain tracked so that if there are changes I could pull those changes, but ignore my local changes from having to be stashed to switch branches or having to revert the changes to switch branches or even more annoying trying to remember to not push these changes to the repo.