From: Wink Saville Date: Fri, 01 Dec 2006 06:20:52 GMT Subject: Re: How-to revert a locally modified file Message-ID: <456FC9C4.5040405@saville.com> In-Reply-To: <7v4psgduzg.fsf@assigned-by-dhcp.cox.net> Junio C Hamano wrote: > Wink Saville 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,