For example, I have branch dev and master. Now they are different on codes and some binary files. And I want to make the branch dev's last commit exactly same to master branch's last commit. How?
My method is:
git diff dev master --binary > 1.patch
git checkout dev
git apply 1.patch
Is there other easy way?