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

Re: Deleted folder keeps showing up?

From
Benjamin Buch <benni.buch@gmx.de>
Date
Sep 4, 2009, 08:18 UTC
Message-ID
<8E56979B-5D85-4844-A492-8149EE9E9B2F@gmx.de>
In-Reply-To
<4AA0C4A2.5040405@drmicha.warpmail.net>
Hi Michael,
thank you for your answer.

Strangely, I can't reproduce the error today. As I did quite a lot branching and merging yesterday (learning git), I can't remember the steps that led to the error.

And it doesn't have to be an error though - perhaps it was just my clouded perception due to the lots of branches.

But I will keep an eye on this and see if it happens again.
Sorry for bothering,
- benjamin
Am 04.09.2009 um 09:41 schrieb Michael J Gruber:
Show 32 quoted lines
> Benjamin Buch venit, vidit, dixit 03.09.2009 18:59:
>> I made a branch and deleted a folder there with git rm -rf  
>> foldername.
>> So now i have to branches, A with the folder and B without the  
>> folder.
>>
>> I'm on B, the folder is not there.
>> Then I check out A, the folder shows up like it should.
>> When I check out B again, the folder is still there.
>>
>> A git rm -rf folder gives me:
>>
>> 	fatal: pathspec 'folder/' did not match any files
>>
>> , so git is not tracking the folder.
>>
>> I can rm -rf the filder without git and start the whole game from the
>> beginning,
>> but there has to be a better way?
>>
>> Strange enough this happens just to two folders I removed,
>> with others there is no problem.
>
> What does "git status" say when you've checked out B? Could some
> contents of folder/ possibly be being ignored (.git/info/excludes  
> etc.)?
>
> Michael
> --
> To unsubscribe from this list: send the line "unsubscribe git" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous: Michael J GruberNext: Junio C Hamano
Message 3 of 6 in “Deleted folder keeps showing up?”
  1. Benjamin BuchSep 3, 2009
  2. Michael J GruberSep 4, 2009
  3. Benjamin BuchSep 4, 2009
  4. Junio C HamanoSep 4, 2009
  5. Benjamin BuchSep 7, 2009
  6. Jeff KingSep 4, 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.