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