git checkout brank resetting from remote code example Example: git match remote master git fetch origin git reset --hard origin/master