Git Black Dirty Cherry Pick Index

I have two branches div and exp

I tried cherry pick part of commit in exp for master.I am get the following error.

git cherry-pick 209c4b154d3c15fa8086d4cc15fa34e53b8a65a3 fatal: Dirty index: cannot cherry pick 

Can someone explain this error.

+4
source share
1 answer

you have changes in your index (incremental changes). either create a new commit or git reset problem files - which works best in your current situation

to avoid conflicts with changes in the working directory, run them using git stash save , return the cherry disk, and then git stash pop back. otherwise you can fix them and then choose cherry

+7
source

Source: https://habr.com/ru/post/1307110/


All Articles