git - How to prevent checked-in files from overwriting local versions? -


i have platform specific modifications checked-in files. how force git keep local version , ignore remote 1 when merge remote branch? basically, git-ignore, files tracked repository.

the use-case i'm pushing 1 branch, , pulling branch on different platforms testing. doing testing first time on each platform required running ./configure script modified files platform-specific customizations. since changes automatically generated, don't want commit them history. add files .gitignore, however, of files part of original repository, git ignore ignored.

this possibly duplicate of git pull keeping local changes first answer there in particular seems best solution if platform-specific changes aren't committed.


Comments

Popular posts from this blog

wordpress - (T_ENDFOREACH) php error -

Export Excel workseet into txt file using vba - (text and numbers with formulas) -

Using django-mptt to get only the categories that have items -