The changes to the .gitignore seems to be not necessary.  Even if config/ folder is ignored, you can still git add -f to add a file within it.  After which the file will always be tracked.