Backport changes from renamed file

后端 未结 7 1187
终归单人心
终归单人心 2020-12-25 13:46

I have two branches: trunk, production. I have found a problem in trunk, made fix and committed it, pushed it. Now it was tested and I need do merge changes into the product

7条回答
  •  不知归路
    2020-12-25 14:34

    To cherry pick changes to any number of files, in case of a directory rename between branches:

    git diff ... | sed -e 's|||' | git apply -
    

提交回复
热议问题