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

nit: missing branch error message

From
JGJeff Garzik <jgarzik@pobox.com>
Date
Sep 16, 2005, 06:35 UTC
Message-ID
<432A67C3.2010205@pobox.com>
Just tried accidentally to check out a non-existent branch:
> [jgarzik@pretzel libata-dev]$ git checkout -f upstream
> fatal: Needed a single revision
> [jgarzik@pretzel libata-dev]$ ls .git/refs/heads/
> adma      chs-support  master    pata-drivers       sil24-original  vsc-mwi
> adma-mwi  iomap        ncq       promise-sata-pata  sil-lbt
> ALL       iomap-step1  passthru  sil24              upstream-fixes
Better error message would be "hey dummy, branch doesn't exist"
	Jeff
Next: Junio C Hamano
Message 1 of 3 in “nit: missing branch error message”
  1. Jeff GarzikSep 16, 2005
  2. Junio C HamanoSep 16, 2005
  3. Linus TorvaldsSep 19, 2005

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.