I have some platform specific modifications to checked-in files. How do I force git to keep local version and ignore the remote one when I merge from a remote branch? Basically, like git-ignore, but for files that are already tracked by repository.
The use-case is that I'm pushing to one branch, and then pulling this branch on different platforms for testing. Doing testing the first time on each platform required running ./configure script which modified some files with platform-specific customizations. Since those changes are automatically generated, I don't want to commit them to history. Normally I add those files to .gitignore, however, some of those files are part of the original repository, so git ignore would be ignored.