Issue: Need to replace git master branch

Solution:

This might remove commits in origin master!

git branch -m master old-master
git branch -m new-master master
git push -f origin master