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

Re: Problem with add folder to a subdirectory

From
Bo Yang <struggleyb.nku@gmail.com>
Date
Apr 4, 2010, 03:26 UTC
Message-ID
<n2u41f08ee11004032026p9a0be36er7d2e017e294bbd35@mail.gmail.com>
In-Reply-To
<28125580.post@talk.nabble.com>

Hi Aris, On Sat, Apr 3, 2010 at 4:26 PM, Aris Bezas <igoumeninja@gmail.com> wrote:

Show 8 quoted lines
>
> Hi,
> I am new to git and i have a problem. I clone repo from a collaborator and i
> want to add some folder to a subdirectory.
> When i add a folder to the root dir ($ git add TestFolder) i have no problem
> but when i try to put it in a different subdirectory like ($ git add
> examples/TestFolder) then with the command ($ git status) i tsake no result
> (nothing to commit (working directory clean)).

Are you sure in the root directory, you can add an empty directory to the index? I don't think so. See: https://git.wiki.kernel.org/index.php/GitFaq#Can_I_add_empty_directories.3F

Regards! Bo

Previous: Ramkumar RamachandraNext: Ramkumar Ramachandra
Message 3 of 4 in “Problem with add folder to a subdirectory”
  1. Aris BezasApr 3, 2010
  2. Ramkumar RamachandraApr 3, 2010
  3. Bo YangApr 4, 2010
  4. Ramkumar RamachandraApr 3, 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.