Fw: [請益] git問題 -> git am xxx.patch有binary

看板Soft_Job (軟體人)作者 (挖哈哈思壓)時間12年前 (2013/12/05 00:19), 編輯推噓0(006)
留言6則, 3人參與, 最新討論串1/1
※ [本文轉錄自 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

12/05 08:30, , 1F
原檔所基於的內容已不同 何不手動上patch
12/05 08:30, 1F

12/05 23:33, , 2F
是binary 檔案長的完全不同 不曉得怎麼直接取代
12/05 23:33, 2F

12/06 21:55, , 3F
patch製作時有加--binary參數嗎?
12/06 21:55, 3F

12/07 12:32, , 4F
不確定 是從別人那邊拿到的 patch ...
12/07 12:32, 4F

12/07 12:33, , 5F
奇怪的是 git apply --binary xxxx.patch也不行 OTL
12/07 12:33, 5F

12/07 12:33, , 6F
這個參數不就是要允許取代binary的嗎
12/07 12:33, 6F
文章代碼(AID): #1IdrO5Oe (Soft_Job)
文章代碼(AID): #1IdrO5Oe (Soft_Job)