I have a couple of files that are in the repo and also in .gitignore.
I would like these files to be removed from the repo but not be deleted from my production server when I do git pull origin master
I have tried multiple solutions but none seam to work, in each one I end up deleting the files from the server when I do a pull.
References:
How to make Git "forget" about a file that was tracked but is now in .gitignore?
Remove directory from remote repository after adding them to .gitignore
How to remove files that are listed in the .gitignore but still on the repository?