From: "Aaron Gray" <aaronngray.lists@googlemail.com>
To: "Dirk Süsserott" <newsletter@dirk.my1.cc>
Cc: "Git Mailing List" <git@vger.kernel.org>
Subject: Re: Resetting working files
Date: Sun, 31 May 2009 16:57:48 +0100 [thread overview]
Message-ID: <D457E686769D44D8BE5DDC26FEEA4AE3@HPLAPTOP> (raw)
In-Reply-To: 4A229B9A.6060807@dirk.my1.cc
> Am 31.05.2009 15:09 schrieb Aaron Gray:
>> Hi,
>>
>> How do I reset the working files back to HEAD ?
>>
>> Many thanks,
>>
>> Aaron
>>
>
> $ git reset --hard
>
> This will revert all changes you made in your working tree back to the
> HEAD. It will delete your changes made so far. To revert only a single
> file, use
>
> $ git checkout -- path/to/file
Great thanks alot Dirk, you anticipated my second question too :)
Cheers,
Aaron
next prev parent reply other threads:[~2009-05-31 15:58 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-05-31 13:09 Resetting working files Aaron Gray
2009-05-31 15:00 ` Dirk Süsserott
2009-05-31 15:57 ` Aaron Gray [this message]
2009-05-31 16:25 ` Peter Baumann
[not found] ` <20090531163225.GE3674@debian.b2j>
2009-05-31 16:50 ` Aaron Gray
2009-05-31 17:39 ` Nicolas Sebrecht
2009-05-31 19:31 ` Aaron Gray
2009-05-31 21:30 ` Alex Riesen
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=D457E686769D44D8BE5DDC26FEEA4AE3@HPLAPTOP \
--to=aaronngray.lists@googlemail.com \
--cc=git@vger.kernel.org \
--cc=newsletter@dirk.my1.cc \
/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;
as well as URLs for NNTP newsgroup(s).