How to cherry pick only changes for only one file, not the whole commit

后端 未结 9 1351
萌比男神i
萌比男神i 2020-12-04 07:12

I need to apply changes introduced in one branch to another branch. I can use cherry pick to do that. However, in my case I want to apply changes which are relevant only for

9条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-04 07:31

    git checkout the_branch_with_the_change the/path/to/the/file/you/want.extension
    

    this works if you want a single file from another branch to be copied to the current working branch

提交回复
热议问题