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

Re: Simple problem

From
Alex Riesen <raa.lkml@gmail.com>
Date
Apr 28, 2008, 17:47 UTC
Message-ID
<20080428174751.GA6710@steel.home>
In-Reply-To
<fv4u49$oks$1@ger.gmane.org>
Kenneth P. Turvey, Mon, Apr 28, 2008 18:31:05 +0200:
Show 10 quoted lines
> I ran into an issue earlier today that I didn't know how to easily solve 
> in git.  I'm sure it is easy to handle, but I wasn't sure how.  
> 
> I removed a file and then realized I'd hit the wrong one.  So all I 
> wanted to do was to get the file back the way it was in the last commit.  
> 
> Basically I wanted something similar to:
> 
> svn update myfile
> 
git checkout HEAD filename
but mostly just "git checkout filename"
Previous: Kenneth P. Turvey
Message 5 of 5 in “Simple problem”
  1. Kenneth P. TurveyApr 28, 2008
  2. Bill LearApr 28, 2008
  3. Björn SteinbrinkApr 28, 2008
  4. Kenneth P. TurveyApr 28, 2008
  5. Alex RiesenApr 28, 2008

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.