how to reset a repository code example Example: git reset from repository git fetch --all git reset --hard origin/master