There is a git-repository of the project, some files are added to .gitignore and thus exist only locally. Nevertheless, I want to keep some of these files under local version control, in order to track changes in them and be able to roll back in case anything happens. It seems like two separate (parallel) repositories are obtained, but with shared files and various .gitignore .
These special files are configs of various utilities that are included with the software. They are located, by definition, in different places, to create a single directory for them is not possible. The state of the configs does not need to be stored on the server and will be different for each user. But sometimes you want to track changes in these files locally and be able to quickly switch to this or that version.
How can you optimally control such files?