Re: "git reset --hard" == "git checkout HEAD" == "git reset --hard HEAD" ???

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

 



chris@xxxxxxxxxxxx writes:

> Does "git reset --hard" == "git checkout HEAD" == "git reset --hard HEAD" ???

No, but "reset --hard" without a commit-ish defaults to HEAD so the first
one and the last one are equivalent.

> It seems we have 2 ways to blow away work we haven't checked in yet then right?

Wrong.
--
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]

  Powered by Linux