Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Today git informed me that it "could not detach HEAD" and refused to merge my work with that of my colleagues.


Better than when it does detach your head.

There seem to be about 77 different ways that can happen and 573 different ways to fix it, and if you do the wrong one, then everything's screwed for everyone, and the history log is useless or obliterated; there's no undo.

If you haven't flogged it enough, you can try to reflog it, but really the only safe thing to do is kill the clone, birth a new clone, and start over.


Did you forget to grep your man for release?




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: