public inbox for git@vger.kernel.org 
 help / color / mirror / Atom feed
From: Wink Saville <wink@saville•com>
To: git <git@vger•kernel.org>
Subject: How-to revert a locally modified file
Date: Thu, 30 Nov 2006 21:23:47 -0800	[thread overview]
Message-ID: <456FBC63.5090609@saville.com> (raw)

Hello,

I searched the net and couldn't find the answer to how to revert a
file to its "pre-modified" state.

I did see in the 0.99.7 To Do:

* Perhaps a tool to revert a single file to pre-modification
state? git-cat-file blob `git-ls-files | grep foo` >foo or
git-cat-file blob `git-ls-tree HEAD foo` >foo? What should
the command be called? git-revert is taken so is
git-checkout.

Did such a command come to be?

Thanks,


             reply	other threads:[~2006-12-01  5:24 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-12-01  5:23 Wink Saville [this message]
2006-12-01  5:51 ` How-to revert a locally modified file Junio C Hamano
2006-12-01  6:20   ` Wink Saville

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=456FBC63.5090609@saville.com \
    --to=wink@saville$(echo .)com \
    --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