I am working on a MVC.NET project and I have external config files that are located in the project's root directory.
At some point, I accidentally committed these files to Git and pushed up the changes.
After several commits after that the tech lead realized my mistake and set it up to be removed from Git, added the files to .gitignore
, and persisted the changes.
Now I have the files that are ignored by Git, but, if I change branches, sometimes it will pull in the commit that removed those files.
So I have to re-touch the file and re-add all the contents (very annoying).
Is there a way so that, even if I change branches, that git bash won't remove my external config files?