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

Re: Newbie: Restore messed up code from local or remote repository

From
Matthieu Moy <matthieu.moy@grenoble-inp.fr>
Date
Nov 12, 2010, 16:57 UTC
Message-ID
<vpqzkte1nve.fsf@bauges.imag.fr>
In-Reply-To
<20101112124621.GF30870@efreet.light.src>
Jan Hudec <bulb@ucw.cz> writes:
Show 5 quoted lines
>> git checkout
>
> I don't think it does anything without argument. With argument '.' this
> restores working tree to the state in index (stage). So if you have that
> screwed up too, it won't be enough.

Actually, the output of "git status" will give you the right command here.

-- 
Matthieu Moy
http://www-verimag.imag.fr/~moy/
Previous: gzoller
Message 6 of 6 in “Newbie: Restore messed up code from local or remote repository”
  1. gzollerNov 12, 2010
  2. Ramkumar RamachandraNov 12, 2010
  3. Jan HudecNov 12, 2010
  4. Santi BéjarNov 12, 2010
  5. gzollerNov 12, 2010
  6. Matthieu MoyNov 12, 2010

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.