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

Re: git reset --hard w/o touching every file

From
Pierre Habouzit <madcoder@debian.org>
Date
Nov 1, 2008, 11:05 UTC
Message-ID
<20081101110529.GC3819@artemis.corp>
In-Reply-To
<gegn38$lku$1@ger.gmane.org>
On Sat, Nov 01, 2008 at 04:48:38AM +0000, Edward Z. Yang wrote:
> I was wondering if there was any way to run `git reset --hard $revlike`,
> or a command with the same effect, without having Git touch every file?
git checkout HEAD -- <list of the files>
-- 
·O·  Pierre Habouzit
··O                                                madcoder@debian.org
OOO                                                http://www.madism.org
Previous: Edward Z. YangNext: Edward Z. Yang
Message 2 of 6 in “git reset --hard w/o touching every file”
  1. Edward Z. YangNov 1, 2008
  2. Pierre HabouzitNov 1, 2008
  3. Edward Z. YangNov 1, 2008
  4. Jeff KingNov 2, 2008
  5. Edward Z. YangNov 2, 2008
  6. Jeff KingNov 2, 2008

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.