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

understanding how remote tracking works

From
Geoff Russell <geoffrey.russell@gmail.com>
Date
Aug 9, 2010, 01:17 UTC
Message-ID
<AANLkTi=J3tDnZUg3k5bzDk2ydzYVVLKLwoW0gpBypYAs@mail.gmail.com>
I'm trying to get my head around tracking/remote repositories.

Why does "git show-ref" show me far more than in in .git/refs/remotes/origin?

$ ls -l .git/refs/remotes/origin total 12 -rw-r--r-- 1 geoff ssh 41 2010-08-09 10:17 BBBB -rw-r--r-- 1 geoff ssh 41 2010-08-09 10:27 CCCC -rw-r--r-- 1 geoff ssh 32 2010-08-09 10:13 HEAD

$ git show-ref ... 21ff181dc71a2fb0ef161b3f55f93b8197312515 refs/remotes/origin/BBBB d2e8aa93940f42c4017f0029d94b9e0ead1d392d refs/remotes/origin/BRANCH e8ee2fb060589114d8fd5cf1d5c568365f2b3dbb refs/remotes/origin/CCCC 979133b0762ed7b4b8b6e0ef0387a2a11e89c8ba refs/remotes/origin/HEAD 2b568d757d92e8fd581a90888dc8b0bc95355565 refs/remotes/origin/LCG fe91bc2a45753830b832a9ccf24fdea5d7b73b4c refs/remotes/origin/SWAN 83f9795420b54eb23327ec33d1907757ba8141cc refs/remotes/origin/brA 2a0ea3f9823db8fb9f74171e38531f5be3cd66a5 refs/remotes/origin/brB 979133b0762ed7b4b8b6e0ef0387a2a11e89c8ba refs/remotes/origin/master 85bffc07ee7f3b07717c4ed74e0a6a56e52a48e4 refs/remotes/origin/mmmm e02730027b1b85d515bce08c17010408610061f4 refs/remotes/origin/nnnn

Cheers, Geoff Russell

P.S. my git is at 1.6.2.3
Next: Ralf Ebert
Message 1 of 11 in “understanding how remote tracking works”
  1. Geoff RussellAug 9, 2010
  2. Ralf EbertAug 9, 2010
  3. Geoff RussellAug 9, 2010
  4. Michael WittenAug 9, 2010
  5. Jonathan NiederAug 9, 2010
  6. Geoff RussellAug 9, 2010
  7. Junio C HamanoAug 9, 2010
  8. Jonathan NiederAug 9, 2010
  9. discarding refs/original/* after filter-branch (Re: understanding how remote tracking works)Jonathan Nieder, Aug 9, 2010
  10. Documentation: add a FILES section for show-refJonathan Nieder, Aug 9, 2010
  11. Junio C HamanoAug 9, 2010

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.