How to reconnect to head after previously dealing with a broken update?

So that output contains a “Note”, but that’s not an error. You should expect the “detached head” message every time you check out a version that is not the latest.