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

Deleted files can't be checked back out?

From
fREW <frioux@gmail.com>
Date
May 23, 2008, 04:28 UTC
Message-ID
<fb3648c60805222128v1a425c60kc8e44f3a2fb41d54@mail.gmail.com>
Hello all,

I recently deleted a bunch of files and checked the change into git, and then changed my mind and wanted the files back. I did a git-checkout <file> and got each file back individually. Then I did some work and did a git-push to upload to github. Then I did more work and tried to do a git push and it gave me an error that apparently meant I had to pull before I pushed. Anyway, I pulled, it redeleted the files and now when I do git-checkout <file> to get them back it says:

error: pathspec 'foo' did not match any file(s) known to git.

I'd really appreciate some help on this issue. I tried messing with qgit to look at it, but I didn't have much luck...

-fREW
Next: Chris Frey
Message 1 of 4 in “Deleted files can't be checked back out?”
  1. fREWMay 23, 2008
  2. Chris FreyMay 23, 2008
  3. fREWMay 25, 2008
  4. Jakub NarebskiMay 24, 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.