git中二进制文件冲突了怎么办
大家讲道理
大家讲道理 2017-04-21 10:57:20
0
3
803

比如psd,图片什么的

大家讲道理
大家讲道理

光阴似箭催人老,日月如移越少年。

reply all(3)
迷茫

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
左手右手慢动作

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

洪涛

Plus -fMandatory coverage.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template