Re: Resetting working files

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]