From: Teemu Likonen Date: Wed, 23 Apr 2008 04:24:33 GMT Subject: Re: Friendly refspecs Message-ID: <20080423042433.GA3291@mithlond.arda.local> In-Reply-To: <7vd4ohy5ym.fsf@gitster.siamese.dyndns.org> Junio C Hamano wrote (2008-04-22 13:45 -0700): > I thought the original poster's example was > > git push $there $commit:branch2 > > where $commit happened to be "branch1". Would we dwim > > git push $there branch1~4:this_is_known_ok > > to refs/heads/? I guess this is what I meant. My original question was about inconsistent user interface: "git push $there branch1" creates branch1 on the remote side (if it does not exist) but "git push $there branch1:branch2" gives an error if branch2 does not exist (branch1:refs/heads/branch2 is required). The case has become much more complicated since, so I just speak aloud my hope that need for refs/ paths in common situations would be reduced to minimum.