I have two branches, email and staging. staging is the latest one and I no longer need the old changes in email branch, y
email
staging
The easiest way to do it:
//the branch you want to overwrite git checkout email //reset to the new branch git reset --hard origin/staging // push to remote git push -f
Now the email branch and the staging are the same.