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
Paolo Bonzini <paolo.bonzini@lu.unisi.ch>
Date
Mar 16, 2007, 11:52 UTC
Message-ID
<45FA84EF.3010103@lu.unisi.ch>
In-Reply-To
<6bb9c1030703160324u17d49b85s754ac8358f633bde@mail.gmail.com>
> I don't have .../.git/remotes directory in this setup??

For v1.5.0, git-clone sets up a remote repository so that you can look at what's going on remotely like this:

  git log origin/next
To create your branch, you have to do something like
  git-checkout -b my-branch origin/next
  git-config add branch.my-branch.remote origin
  git-config add branch.my-branch.merge refs/heads/next

Note that the branch in the last command is the remote branch name not the local name.

<shameless-advertisement-of-my-patches> With the current git "master" branch, you are able to do something like

  git-checkout --track -b my-branch origin/next

and git-pull (with no arguments) will automatically pull from whatever branch you specified upon branch creation. --track also works with local branches, so you can have your topic branches track the tip of your current development branch, for example. </shameless-advertisement-of-my-patches>

Paolo
Previous: Paolo BonziniNext: Matthias Lederhofer
Message 3 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.