go back to head git code example Example: how to return to latest version on git // we need to type both of them git fetch origin git reset --hard origin/master