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

Re: git reset --hard and uncommitted files in index

From
Sverre Rabbelier <srabbelier@gmail.com>
Date
May 22, 2009, 10:50 UTC
Message-ID
<fabb9a1e0905220350i12d30d17udf078ec2ff76513a@mail.gmail.com>
In-Reply-To
<gv52s4$e7h$1@ger.gmane.org>
Heya,
On Fri, May 22, 2009 at 04:32, Thomas Guyot-Sionnest <dermoth@aei.ca> wrote:
> Shouldn't git just unstage it?

You can do that too, 'git reset && git reset --hard' will not touch untracked files. The first will unstage all your changes, the second will blow away all changes to tracked files.

-- 
Cheers,

Sverre Rabbelier
Previous: Johannes Sixt
Message 3 of 3 in “git reset --hard and uncommitted files in index”
  1. Thomas Guyot-SionnestMay 22, 2009
  2. Johannes SixtMay 22, 2009
  3. Sverre RabbelierMay 22, 2009

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.