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

SVN FAQ: svn revert replacement

From
FWFlorian Weimer <fweimer@bfk.de>
Date
Jul 24, 2007, 13:49 UTC
Message-ID
<82hcntkj3n.fsf@mid.bfk.de>

Just one nit: The correct replacement for "svn revert FILE" seems to be:

  $ git checkout HEAD -- FILE

The current suggestion, "git checkout FILE", does not work if the modifications have been staged with "git add".

-- 
Florian Weimer                <fweimer@bfk.de>
BFK edv-consulting GmbH       http://www.bfk.de/
Kriegsstraße 100              tel: +49-721-96201-1
D-76133 Karlsruhe             fax: +49-721-96201-99
Message 1 of 1 in “SVN FAQ: svn revert replacement”
  1. Florian WeimerJul 24, 2007

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.