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

Re: how do i re-add a file?

From
Miklos Vajna <vmiklos@frugalware.org>
Date
Apr 1, 2008, 11:41 UTC
Message-ID
<20080401114147.GH3264@genesis.frugalware.org>
In-Reply-To
<47F21814.6000705@tikalk.com>
On Tue, Apr 01, 2008 at 02:10:12PM +0300, Ittay Dror <ittayd@tikalk.com> wrote:
> I did git-rm on a file and committed. Made some changes to my sources and 
> committed. Now I want the file back. How can I do that? Related to that, 
> how do I revert my files to some past commit state so that the commits in 
> between are kept in the history?
git checkout HEAD^ -- path/to/file
Previous: James Sadler
Message 3 of 3 in “how do i re-add a file?”
  1. Ittay DrorApr 1, 2008
  2. James SadlerApr 1, 2008
  3. Miklos VajnaApr 1, 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.