From: "Aaron Gray" <aaronngray.lists@googlemail.com>
To: "Git Mailing List" <git@vger.kernel.org>
Subject: reverting a file or files back to repository copy
Date: Sat, 2 May 2009 15:54:41 +0100 [thread overview]
Message-ID: <137A749092D040488A7F25B4CA5ED1DC@HPLAPTOP> (raw)
How do I do the eqivalent of an 'svn revert' on a single file, on a
directory of files, or on all files ?
I found 'git reset --hard HEAD' but it seems like a hammer to crack open a
nut.
Many thanks in advance,
Aaron
next reply other threads:[~2009-05-02 14:54 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-05-02 14:54 Aaron Gray [this message]
2009-05-02 15:25 ` reverting a file or files back to repository copy Peter Harris
2009-05-02 15:33 ` Markus Heidelberg
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=137A749092D040488A7F25B4CA5ED1DC@HPLAPTOP \
--to=aaronngray.lists@googlemail.com \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
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