Thread (4 messages) flat view 4 messages, 3 authors, 2016-06-15

Re: Resetting working files

From: Dirk Süsserott <hidden>
Date: 2016-06-15 22:46:53

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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help