Backport changes from renamed file

后端 未结 7 1192
终归单人心
终归单人心 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:32

    I'd use good old patch for this:

    git show COMMIT_ID -- old/file/name.txt | patch new/file/name.txt
    

提交回复
热议问题