From: Junio C Hamano Date: Tue, 16 Aug 2005 02:55:40 GMT Subject: Re: How do I track pu branch? Message-ID: <7vd5oepp3n.fsf@assigned-by-dhcp.cox.net> In-Reply-To: <7v4q9qr4gn.fsf@assigned-by-dhcp.cox.net> Junio C Hamano writes: > Martin Langhoff writes: > >> Following an extenal repo, I am not getting all the heads. This is by >> design, AFAIK, and the question is how do I find what heads the repo >> offers and pull them in so I can call them by name? Sorry, "git ls-remote" was the answer to only the first question. Regarding your second question. Once you have found out about them, the way to use shorthand the current tool offers is: $ echo 'http://www.kernel.org/pub/scm/git/git.git/#pu' \ >.git/branches/ko-pu $ git fetch ko-pu Any "git fetch" creates .git/FETCH_HEAD file which holds the SHA1 object name of the fetched commit, but when shorthand recorded in .git/branches is involved, it additionally creates the file ".git/refs/heads/ko-pu". Then you could: $ git checkout -b for-junio ko-pu $ git apply --index