I want to overrite master with a particular branch after making changes to it, what I done to do it is:
Step 1: Checkout brranch from Git, using command :
git branch -f master dev_branch will rewrite local master branch.
git branch -f master dev_branch
git push remote +dev_branch:master will rewrite remote branch.
git push remote +dev_branch:master
remote
origin
git push origin +dev_branch:master