how to overwrite branch with local git code example
Example 1: git overwrite local branch with remote
git reset --hard origin/master
Example 2: how to overwrite a branch to other branch
git checkout seotweaks
git merge -s ours master
git checkout master
git merge seotweaks