Re: How-to revert a locally modified file

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

 



Junio C Hamano wrote:
Wink Saville <wink@xxxxxxxxxxx> writes:


Where did you find 0.99.7 ToDo?  I am curious...

here: http://kerneltrap.org/node/5678


    git-checkout: revert specific paths to either index or a given tree-ish.
When extra paths arguments are given, git-checkout reverts only those
    paths to either the version recorded in the index or the version
    recorded in the given tree-ish.

FYI the above seems more obvious then what's in the man page:

"It updates the named paths in the working tree from the
index file (i.e. it runs git-checkout-index -f -u)."

But for me saying something like;

"It reverts the paths in the working tree to the most recent version stored in git."

would even be better. It may not be as precise as the current sentence,
but more obvious to this neophyte. Finally, in the EXAMPLES you
might add another example of reverting a "modified the file" as
well as recovering a deleted file.

In any case thanks,

Wink
-
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]