Re: git push to a non-bare repository
Junio C Hamano <junkio@cox.net> writes:
Show 6 quoted lines
> 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.