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