I tried
git checkout OTHER_BRANCH -- /path/to/folder
the problem is with files that exist on current branch, but do not exist on the other branch. I want to delete these.
I think you want:
git rm -r /path/to/folder
git checkout OTHER_BRANCH -- /path/to/folder
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With