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

Re: `git-rev-parse master` not referred to by any ref?

From
JFJ. Bruce Fields <bfields@fieldses.org>
Date
Aug 26, 2007, 13:52 UTC
Message-ID
<20070826135251.GB20243@fieldses.org>
In-Reply-To
<20070826134521.GA20243@fieldses.org>
On Sun, Aug 26, 2007 at 09:45:21AM -0400, J. Bruce Fields wrote:
Show 11 quoted lines
> Any idea how I got into this situation?:
> 
> 	git$ git rev-parse master
> 	warning: refname 'master' is ambiguous.
> 	407c0c87e15b3cf60347f4fc0bcdb4d239de4163
> 	~/local/git$ git for-each-ref | grep master
> 	32ebe844c689d6e13e9875a0feefedca8dc1c6eb commit refs/heads/master
> 	e413074f1293e907d94af99330f0dd632a78b01f commit refs/remotes/linux-nfs/master
> 	0058a33a8eb5a8bfcfc5f5e769a2517cff4b73f1 commit refs/remotes/origin/master
> 	git$ git for-each-ref | grep 407c0
> 	git$ 
Oops, found it:
	git$ cat .git/master
	407c0c87e15b3cf60347f4fc0bcdb4d239de4163
--b.
Previous: J. Bruce FieldsNext: J. Bruce Fields
Message 2 of 6 in “`git-rev-parse master` not referred to by any ref?”
  1. J. Bruce FieldsAug 26, 2007
  2. J. Bruce FieldsAug 26, 2007
  3. J. Bruce FieldsAug 26, 2007
  4. Junio C HamanoAug 26, 2007
  5. Shawn O. PearceAug 26, 2007
  6. J. Bruce FieldsAug 26, 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.