I have some platform modifications for verification files. How to get git to support the local version and ignore the remote one when I merge with the remote branch? Mostly like git -ignore, but for files that are already being tracked by the repository.
A use case is that I click on one branch and then pull this branch on different platforms for testing. Performing testing for the first time on each platform requires a launch. / configure script that modified some configuration files for a specific platform. Since these changes are automatically generated, I do not want to pass them to the history. I usually add these files to .gitignore, however some of these files are part of the original repository, so ignoring git is ignored.
source
share