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