how to overwrite remote branch with local git code example Example: git overwrite local branch with remote git reset --hard origin/master