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

Re: Simple rollback or discard of un-commited changes

From
Brandon Casey <casey@nrlssc.navy.mil>
Date
May 16, 2009, 02:21 UTC
Message-ID
<e9_YdDV8acmQN1LWtgANyk7np-p4Fge6aCPHlAGEpeaAUqaNBK9i8Q@cipher.nrlssc.navy.mil>
In-Reply-To
<025F1C6D-1CAE-42BD-986B-1B53238882DE@itelliseek.com>
Peter CHARRON wrote:
> I've used a lot of Source Code Control systems, but I can't figure out
> how to do a simple discard (aka rollback) of one file using GIT.
git checkout -- $file
Previous: Peter CHARRON
Message 2 of 2 in “Simple rollback or discard of un-commited changes”
  1. Peter CHARRONMay 16, 2009
  2. Brandon CaseyMay 16, 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.