git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: git-pull can't be used without URL - Has worked before

From
MLMatthias 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.
Previous: Paolo Bonzini
Message 4 of 4 in “git-pull can't be used without URL - Has worked before”
  1. Pelle SvenssonMar 16, 2007
  2. Paolo BonziniMar 16, 2007
  3. Paolo BonziniMar 16, 2007
  4. Matthias LederhoferMar 16, 2007

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.