I have config settings that differ between prod and dev environment. When I take a pull in prod environment it is bringing in the dev config code too even though I have added them in git ignore file.
I need the config files to be isolated to each environment and need to exclude the config files from moving with the pipeline deployment.
Currently the commit is showing the dev config files in the pull request when deploying to prod even though the config files are part of the git ignore file.
How do I prevent the dev config files from coming along in the prod deployment?