I have a branch "mybranch" which was created from the master but it has not been updated for the last couple of months. I want to update "mybarch" from a specific commit of the master branch. I want to ignore anything additional which is in "mybarch" and keep it in sync with the specific commit of the master branch. How can I achieve this? I'm trying this, does this sound ok? This results into many conflicts whereas I want to accept what comes from the master.
git checkout mybranch
git merge --squash master <commit-id>