I'm using VS Code to manage my project and sync with GitHub.
In my config file, I have some API keys and endpoints which I do not want to make public, yet, I would like to maintain a version of the same file with dummy values in the project on GitHub.
As my project is essentially a bunch of scripts (not compiled), I'm unsure of the best way to manage 2 files with the same name, locally and remotely. So far I've been ignoring a backup file and I need to manually juggle every time I commit, which is fraught with danger.
Unfortunately .gitignore
does not solve my problem because VS Code (git) identifies the local file as different to the remote file and therefore not ignorable. Then it hangs around in my modified files list, like a bad smell.