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