问题描述
比如psd,图片什么的
问题解答
回答1:对于二进制文件的冲突,你肯定不想通过编辑二进制文件来解决冲突,那是不可能完成的事情。你要做的就是:要么选择对方的修改,要么选择自己的修改。你可以用git checkout的--theirs或--ours选项。
git pullgit checkout --theirs YOUR_BINARY_FILE// git checkout --ours YOUR_BINARY_FILEgit add YOUR_BINARY_FILEgit commit -m ’merged with the remote repos.’git push回答2:
冲突文件剪切到桌面,pull,从桌面剪切回去,commit,push
回答3:加上-f强制覆盖。