Thread (1 message) 1 message, 1 author, 2016-08-11

Re: [PATCH] git-checkout: allow pathspec to recover lost working tree directory

From: Junio C Hamano <hidden>
Date: 2016-08-11 19:27:16

"Anand Kumria" [off-list ref] writes:
On Wed, 15 Nov 2006 11:07:19 -0800, Junio C Hamano wrote:
quoted
It is often wanted on the #git channel that this were to work to
recover removed directory:

	rm -fr Documentation
	git checkout -- Documentation
	git checkout HEAD -- Documentation ;# alternatively

Now it does.
One thing I often seem to do is make some changes, test them out and
remove the file if it wa a dead end and get my original back with
'cg-restore <file>'. Does this mean that the git equivalent will be 'git
checkout -- <file>' as well?
Naming individual files has been supported for a long time.
What this patch adds is an ability to name a whole directory to
restore to the index state or a named commit state).
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help