I have a repo with a env/
folder. This folder is for personal configurations, but, the file must not be changed in the repo. (i.e: you introduce database data (hosts, ports, passwords), but you don't want the repo to have that info.)
Note, the file has other info as well, so the file must be in the repo. (so no .gitignore)
How can I exclude the file changes when pushing to the origin?
So far, I've been deleting and then adding again the extra info every time I make a push. So I need to change the workflow asap.
Also, the repo is not mine, so I can't add or change much around.