git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: Newbie

From
MOMikko Oksalahti <mikko@azila.fi>
Date
Dec 1, 2009, 12:00 UTC
Message-ID
<loom.20091201T125555-549@post.gmane.org>
In-Reply-To
<26ae428a0912010145k61dbfc41l8243363493918445@mail.gmail.com>
Howard Miller <howardsmiller <at> googlemail.com> writes:
> 
> 2009/12/1 Mikko Oksalahti <mikko <at> azila.fi>:
> > How do I now get the accidentally deleted files back from the repository 
without
Show 10 quoted lines
> > losing local changes made to 10 files?
> 
> 'git status' should show you what files you have deleted.  'git
> checkout filename' should get them back. I can't think of a way of
> recovering every file you have just deleted although - I suspect it
> might be tricky. Thinks like 'git pull' only apply to remote
> repositories and you don't have one of those. 
> 
> Howard
> 

Ok. That helps. I just assumed the 'git pull' would work same way on local and remote repositories but I guess not then...

> ....You're not thinking of it the right way (yet) 
I hate when you say that :P
  /Mikko
Previous: Howard MillerNext: Tay Ray Chuan
Message 3 of 4 in “Newbie "svn update" question”
  1. Mikko OksalahtiDec 1, 2009
  2. Howard MillerDec 1, 2009
  3. Mikko OksalahtiDec 1, 2009
  4. Tay Ray ChuanDec 1, 2009

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.