search

Home  >  Q&A  >  body text

git中二进制文件冲突了怎么办

比如psd,图片什么的

大家讲道理大家讲道理2801 days ago812

reply all(3)I'll reply

  • 迷茫

    迷茫2017-04-21 10:59:20

    For binary file conflicts, you definitely don’t want to resolve the conflict by editing the binary file, that is impossible.
    All you have to do is: either choose the other party's modifications, or choose your own modifications.
    You can use the --theirs--ours option of git checkout.

    git pull
    git checkout --theirs YOUR_BINARY_FILE
    // git checkout --ours YOUR_BINARY_FILE
    git add YOUR_BINARY_FILE
    git commit -m 'merged with the remote repos.'
    git push

    reply
    0
  • ringa_lee

    ringa_lee2017-04-21 10:59:20

    Cut conflicting files to the desktop, pull, cut back from the desktop, commit, push

    reply
    0
  • PHP中文网

    PHP中文网2017-04-21 10:59:20

    Plus -fMandatory coverage.

    reply
    0
  • Cancelreply