Thread (3 messages) flat view 3 messages, 3 authors, 2016-06-15

Re: Restoring files from old commits

From: martin f krafft <hidden>
Date: 2016-06-15 22:43:21

also sprach Nikodemus Siivola [off-list ref] [2007.07.14.1409 +0200]:
What is the recommended way to restore individual files
(or directories) in the working tree to the content they
had in a given commit?
As per my comment on IRC, I think

  git checkout <tree-ish> <path>

is the way.

-- 
martin;              (greetings from the heart of the sun.)
  \____ echo mailto: !#^."<*>"|tr "<*> mailto:" net@madduck
 
spamtraps: madduck.bogus@madduck.net
 
"the difference between genius and stupidity
 is that genius has it's limits."
                                                    -- albert einstein

Attachments

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help