git force overwrite of local files code example Example: git overwrite local branch with remote git reset --hard origin/master