git overwrite branch with another code example
Example 1: git transfer changes to another branch
git stash
git checkout -b new-branch
git stash pop
Example 2: how to overwrite a branch to other branch
git checkout seotweaks
git merge -s ours master
git checkout master
git merge seotweaks