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