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

when is a remote a branch?

From
AKAnand Kumria <wildfire@progsoc.org>
Date
Nov 12, 2006, 15:50 UTC
Message-ID
<ej7fra$8ca$2@sea.gmane.org>
Hi,

I generally tend to use cogito -- it does all the heavy lifting, like recovering from interrupted fetchs (usually) for me. One thing I haven't really gotten my head around is the difference between a branch and a remote.

git-branch knows of 'remotes' (via the -r parameter) and these to be unrelated to what cogito thinks remotes are (it seems to look for things in .git/refs/head/<name> and then a corresponding .git/branches/<name>/ which it then declares a remote).

Yet, git-init-db creates both .git/remotes and .git/branches

What is the difference between the two. From my (naïve) perspective the two tools (git and cogito) regarded them very differently.

Any explanation, or pointer to some documentation, would be helpful.

Thanks, Anand

Next: Jakub Narebski
Message 1 of 7 in “when is a remote a branch?”
  1. Anand KumriaNov 12, 2006
  2. Jakub NarebskiNov 12, 2006
  3. Petr BaudisNov 12, 2006
  4. Jakub NarebskiNov 12, 2006
  5. Petr BaudisNov 14, 2006
  6. Jakub NarebskiNov 14, 2006
  7. Petr BaudisNov 14, 2006

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.