I think you should exclude the container-specific files. Identify the files that are being modified inside the Docker container and causing the changes to be synced with your local repository. Then, create or modify a .gitignore file in the root directory of your local repository. Add the paths or patterns of the files you want to exclude from being tracked by Git. For example, if the modified files are located in a directory named container-files, you can add the following line to your .gitignore file:
container-files/
Next, you need to manage separate configuration files. If the changes are happening to configuration files, consider creating separate configuration files specific to the Docker container. In your repository, provide template or default configuration files that can be copied and modified by users in their local environments or Docker containers. Add the actual configuration files to the .gitignore file to exclude them from version control. basket random You can then provide their specific configuration files locally or within the Docker container without affecting the repository.