Re: git-pull can't be used without URL - Has worked before
- From
- Matthias Lederhofer <matled@gmx.net>
- Date
- Mar 16, 2007, 22:48 UTC
- Message-ID
- <20070316224842.GA20775@moooo.ath.cx>
- In-Reply-To
- <6bb9c1030703160324u17d49b85s754ac8358f633bde@mail.gmail.com>
Pelle Svensson <pelle2004@gmail.com> 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 [<remote>] 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.