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

Suggestion for Git docummntation Book, Chapter "7.7 Git Tools - Reset Demystified"

From
PHPeter Hunkeler <peter.hunkeler@gmx.net>
Date
Jan 18, 2024, 18:42 UTC
Message-ID
<54482cec-88de-4e88-a153-f699c2c087d9@gmx.net>
Hi,

I appreciate all the work that has been done to give us Git users good documentation.

As a rather-newbie I have to lookup the commands I need for rarely used, specific tasks. <git reset ...> being one of them. If find chapter "7.7 Git Tools - Reset Demystified" very helpful. There is however one point that newbies might not (yet) clearly understand: The git reset does *not* do anything to new, untracked files that might exist in the working tree. To cleanup, the advice from various places on the internet is to issue a "git clean -f -d" after the reset.

Maybe it would be helpful if said chapter had a short discussion about non tracked files, how to clean with "git clean -f -d"

Thanks Peter

Next: Jeff King
Message 1 of 2 in “Suggestion for Git docummntation Book, Chapter "7.7 Git Tools - Reset Demystified"”
  1. Peter HunkelerJan 18, 2024
  2. Jeff KingJan 20, 2024

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.