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