git accept incoming changes for file code example Example: git accept incoming changes for all git checkout --theirs path/to/file