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

Probably typographic error in tutorial 2

From
Eel24614 <el24614@mail.ntua.gr>
Date
Apr 27, 2025, 21:02 UTC
Message-ID
<15509dd701ace6793f0ae19368e4c0c3@mail.ntua.gr>
Hello,

I think in tutorial 2 (https://git.scm.com/docs/gittutorial-2) in the first code box the second time that file.txt is edited ($ echo 'hello world!' >file.txt) there should be an additional ">" because a single one will overwrite the contents. As far as i understand from what follows bellow, the text should be appended.

Kind Regards, N.Antonetsis

Next: Eric Sunshine
Message 1 of 3 in “Probably typographic error in tutorial 2”
  1. el24614Apr 27, 2025
  2. Eric SunshineApr 27, 2025
  3. Junio C HamanoApr 28, 2025

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.