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

Re: error in tuto2?

From
Junio C Hamano <junkio@cox.net>
Date
Jan 22, 2007, 05:21 UTC
Message-ID
<7vwt3fvdoy.fsf@assigned-by-dhcp.cox.net>
In-Reply-To
<20070122020414.GA2399@localhost>
calmar <mac@calmar.ws> writes:
> close at the end: git cat-file blob a6b11f7a
>
> shouldn't that be: git cat-file blob 8b9743b  ?

Interesting. Indeed 'a6b11f7a' spells "goodbye, word" so the example is at least internally consistent but still is wrong.

Thanks for catching.
---
diff --git a/Documentation/tutorial-2.txt b/Documentation/tutorial-2.txt
index f48894c..f363d17 100644
--- a/Documentation/tutorial-2.txt
+++ b/Documentation/tutorial-2.txt
@@ -343,8 +343,8 @@ And, as you can see with cat-file, this new entry refers to the
 current contents of the file:
 
 ------------------------------------------------
-$ git cat-file blob a6b11f7a
-goodbye, word
+$ git cat-file blob 8b9743b2
+goodbye, world
 ------------------------------------------------
 
 The "status" command is a useful way to get a quick summary of the
Previous: calmar
Message 2 of 2 in “error in tuto2?”
  1. calmarJan 22, 2007
  2. Junio C HamanoJan 22, 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.