how to overrite local branch with remote branc h in git code example Example: git replace local branch with remote git reset --hard origin/master