overiting with git pull by force code example Example: git overwrite local branch with remote git reset --hard origin/master