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

Re: Revert hunk?

From
Johannes Sixt <j6t@kdbg.org>
Date
May 1, 2010, 21:38 UTC
Message-ID
<4BDC9F66.5090305@kdbg.org>
In-Reply-To
<loom.20100501T215211-11@post.gmane.org>
Am 01.05.2010 21:54, schrieb Steve Folly:
> git gui has an option to revert changes, but that applies
> to the whole file. Is there an option to revert a line
> or hunk rather than the whole file?
Stage everything except that hunk or line, and then revert.
-- Hannes
Previous: Steve FollyNext: Uri Okrent
Message 2 of 3 in “Revert hunk?”
  1. Steve FollyMay 1, 2010
  2. Johannes SixtMay 1, 2010
  3. Uri OkrentMay 28, 2010

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.