From: Junio C Hamano Date: Tue, 09 Aug 2005 02:48:35 GMT Subject: Re: [PATCH] Teach git push .git/branches shorthand Message-ID: <7vvf2fyge4.fsf@assigned-by-dhcp.cox.net> In-Reply-To: <200508081822.24582.Josef.Weidendorfer@gmx.de> Josef Weidendorfer writes: >> My point being that I still can say >> >> git pull x some_non_default_head >> >> with a file "x" in .git/branches. > > Is this currently possible? Not right now, but that is the plan. > My understanding of .git/branches was that Cogito uses this as mapping of > remote branches/heads to local branches/refs, and not to store shortcuts for > remote git repositories. > IMHO, the above usage is a kind of "type mismatch", as the "x" already > contains the branch. You can look at it this way: "x which already contains the branch" can specify the default branch if command line did not say anything, but the command line can override it.