close

create hash for patch

create hash for patch.png

Stack overflow (Git: How to create patches for a merge?)

由於不同功能或不同人開發的緣故, 會在HEAD上分出不同的branch

當要進行merge的時候, 要怎麼建立新的patch呢?

 

這位原po 做出兩個branch, 後來想要倒退原本的commit 

但是還原的時候會有一些conflict導致有其中一個branch無法回復

https://stackoverflow.com/questions/2285699/git-how-to-create-patches-for-a-merge

應用git apply 或 git am 應用patch

以及有關分支的整合

https://git-scm.com/book/zh-tw/v1/%E5%88%86%E6%95%A3%E5%BC%8F-Git-%E5%B0%88%E6%A1%88%E7%9A%84%E7%AE%A1%E7%90%86

如果要倒退回去更了解分支整合的基礎

就可以回去看

分散式 Git 為專案做貢獻

https://git-scm.com/book/zh-tw/v1/%E5%88%86%E6%95%A3%E5%BC%8F-Git-%E7%82%BA%E5%B0%88%E6%A1%88%E4%BD%9C%E8%B2%A2%E7%8D%BB

 

 

arrow
arrow
    全站熱搜
    創作者介紹
    創作者 紅線 的頭像
    紅線

    紅線的生存日誌

    紅線 發表在 痞客邦 留言(0) 人氣()