Re: Resetting working files
- From
- Dirk Süsserott <newsletter@dirk.my1.cc>
- Date
- May 31, 2009, 15:00 UTC
- Message-ID
- <4A229B9A.6060807@dirk.my1.cc>
- In-Reply-To
- <DA26600008CE404B831978F6EBB31C6B@HPLAPTOP>
Am 31.05.2009 15:09 schrieb Aaron Gray:
Show 8 quoted lines
> 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