I am trying to do a dev / production style workflow, so I have 2 projects:
This is working out great, I can dev without disturbing the “real” project, and use github export + import to move from dev to live.
The problem is that I am using a flat file as a database for the project, but it is getting overwritten when I import from github. I want to keep that file around when I do the import.
There is this old topic that marked .env as not overwriteble: Keep .env when importing from GitHub? - but if possible, I would like to mark a whole folder, or an arbitrary file as not overwriteable.