threads / discuss / 9203

SVN FAQ: svn revert replacement

Subject: SVN FAQ: svn revert replacement

## tl;dr

One message between Jul 24, 2007 and Jul 24, 2007.

replies: 0people: 1as markdown or json

Florian Weimer· Jul 24, 2007, 13:49 UTC · lore

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

← back to recent threads