git - How to copy a directory one branch to another -


we have got branch called master (production) , called development1 development2 development3 development4 ....

on development1 branch created directory bugfix_7869 , committed changes. later realized bugfix_7869 has created on development4 branch.

how move bugfix_7869 directory development1 development4 branch , remove bugfix_7869 history development1 branch.

new git , read many articles around no able achieve this.

maybe try way, find commit bugfix_7869, , switch development4 , use command:

git checkout development4 git cherry-pick commit_hash_with_bugfix_7869 

Comments