Junio C Hamano <junkio@xxxxxxx> writes: > However, sometimes I accidentally leave 'next' checked out. If > I find out that I left non 'master' checked out, I would do "git > reset --hard HEAD" before doing anything else, and I do not want > my push to sometimes result in detached HEAD and sometimes not. > I do not want to lose the information which branch I was on last > (because the next thing I would do is on which branch Meta/Doit s/do is on/do is to find out on/; > failed). If I _were_ annoyed enough by sometimes mistakenly > pushing into the live branch, I would switch to separate remote > layout and push into remotes/origin/* hierarchy, and there will > be truly nothing to worry about after that point. - To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html