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

Re: Git ghost references

From
Johannes Sixt <j6t@kdbg.org>
Date
Jan 3, 2012, 08:23 UTC
Message-ID
<4F02BAF9.1000206@kdbg.org>
In-Reply-To
<CAJ6vYjfpx-hfDsd+urp5_iS99p0RhmxohOc+TNv7SUWFnYe5wQ@mail.gmail.com>
Am 03.01.2012 00:42, schrieb Chris Leong:
Show 7 quoted lines
> I seem to have a "ghost reference" - ie. I can check out a reference
> that doesn't appear to exist. Does anyone know what might cause this?
> 
> ~/gaf-cvs (project-membership)$ g show-ref | grep production
> ~/gaf-cvs (project-membership)$ g co production
> Note: checking out 'production'.
> ...

The most likely reason is that you have a ref 'production' directly in the .git directory. Perhaps you or one of your scripts created it accidentally using 'git update-ref production ae5b621', i.e., without giving the full ref path name.

-- Hannes
Previous: Chris LeongNext: Chris Leong
Message 2 of 3 in “Git ghost references”
  1. Chris LeongJan 2, 2012
  2. Johannes SixtJan 3, 2012
  3. Chris LeongJan 3, 2012

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.