git Cherry-pick Failed your local changes would be overwritten by cherry-pick. hint: commit your

your local changes would be overwritten by cherry-pick. hint: commit your changes or stash them to proceed. cherry-pick failed

    • 要把Branch A分支的abc提交cherry-pick到Branch B分支上
    • 1. 先切换到Branch A的分支
    • 2. 切换到要Branch B分支
    • 3. 切换Branch Af分支,unstash文件

hint: commit your changes or stash them to proceed.
cherry-pick failed)

要把Branch A分支的abc提交cherry-pick到Branch B分支上

1. 先切换到Branch A的分支

把没提交的文件提交或者把没提交的文件先stash

2. 切换到要Branch B分支

选择Branch A分支中的abc, 然后右键cherry-pick

3. 切换Branch Af分支,unstash文件

你可能感兴趣的:(git)