From: Matthias Lederhofer Date: Fri, 16 Mar 2007 22:48:42 GMT Subject: Re: git-pull can't be used without URL - Has worked before Message-ID: <20070316224842.GA20775@moooo.ath.cx> In-Reply-To: <6bb9c1030703160324u17d49b85s754ac8358f633bde@mail.gmail.com> Pelle Svensson wrote: > Did a setup of a new git-kernel, but this time git-pull can't be used > without > full URL. What should I do. git pull [] uses the first branch of 'remote' if there is no special branch.name.{merge,remote} configuration. But git clone will setup remote.origin.fetch = +refs/heads/*:refs/remotes/origin/* which uses wildcards and isn't used as 'first branch'. You can add another remote.origin.fetch line before this one in .git/config with fetch = +refs/heads/master:refs/remotes/origin/master which worked for me.