public inbox for git@vger.kernel.org 
 help / color / mirror / Atom feed
From: Florian Weimer <fweimer@bfk•de>
To: git@vger•kernel.org
Subject: SVN FAQ: svn revert replacement
Date: Tue, 24 Jul 2007 15:49:00 +0200	[thread overview]
Message-ID: <82hcntkj3n.fsf@mid.bfk.de> (raw)

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

                 reply	other threads:[~2007-07-24 14:08 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=82hcntkj3n.fsf@mid.bfk.de \
    --to=fweimer@bfk$(echo .)de \
    --cc=git@vger$(echo .)kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox