作者stenler (挖哈哈思壓)
看板Soft_Job
標題Fw: [請益] git問題 -> git am xxx.patch有binary
時間Thu Dec 5 00:19:16 2013
※ [本文轉錄自 PHP 看板 #1IdrMUvj ]
作者: stenler (挖哈哈思壓) 看板: PHP
標題: [請益] git問題 -> git am xxx.patch有binary
時間: Thu Dec 5 00:17:32 2013
如題,當用git am xxx.patch要上patch的時候
系統會出現
error: the patch applies to 'xxx.bin', which does not match the
current contents
然後 patch apply就會失敗 請問這有解嗎
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 1.34.188.93
※ 發信站: 批踢踢實業坊(ptt.cc)
※ 轉錄者: stenler (1.34.188.93), 時間: 12/05/2013 00:19:16
→ typepeter:原檔所基於的內容已不同 何不手動上patch 12/05 08:30
→ stenler:是binary 檔案長的完全不同 不曉得怎麼直接取代 12/05 23:33
→ anotherday:patch製作時有加--binary參數嗎? 12/06 21:55
→ stenler:不確定 是從別人那邊拿到的 patch ... 12/07 12:32
→ stenler:奇怪的是 git apply --binary xxxx.patch也不行 OTL 12/07 12:33
→ stenler:這個參數不就是要允許取代binary的嗎 12/07 12:33