I'm working in Visual Studios with TFS and I have 3 branches. In our repo each branch has 2 solutions with configs files. Those config files have been committed and need to remain committed. However, on my machine I need to change the config files to point to the correct db.
I've tried git update-index --skip-worktree App.config
however when I go to switch branches I get the error message below:
Also with
git rm --cached App.config
it creates the .gitignore
file and when that is commited the App.config is removed from the repo which I don't want.
My goal is to just ignore the changes I make to the file but keep the file in the online git repo.