From: Junio C Hamano Date: Tue, 20 Mar 2007 00:54:01 GMT Subject: Re: git push to a non-bare repository Message-ID: <7vk5xcd9au.fsf@assigned-by-dhcp.cox.net> In-Reply-To: <7vodmod9id.fsf@assigned-by-dhcp.cox.net> Junio C Hamano 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.