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

Re: Problem with add folder to a subdirectory

From
Ramkumar Ramachandra <artagnon@gmail.com>
Date
Apr 3, 2010, 18:25 UTC
Message-ID
<n2nf3271551004031125g38c52d0cq810ed366f3d1d2d3@mail.gmail.com>
In-Reply-To
<990EEB31-9AAB-4CF5-AC05-11BCA45C6447@gmail.com>
[Kindly do not cull the list from CC unless absolutely necessary]
On Sat, Apr 3, 2010 at 11:45 PM, Aris Bezas <aribezas@gmail.com> wrote:
> I put a content in the folder (test.txt file) but i there is no result.
> The strange thing is that when i add this in the root directory (where the
> git is) it recognize it but in a subdirection no.

Unless I've misunderstood something, I'm not able to replicate your issue. Kindly go through some introductory material on Git.

$ git init Initialized empty Git repository in /tmp/foo/.git/ $ mkdir -p 1/2 $ touch 1/2/test.txt $ git add 1/2 $ git status # On branch master # # Initial commit # # Changes to be committed: # (use "git rm --cached <file>..." to unstage) # # new file: 1/2/test.txt #

-- Ram
Previous: Bo Yang
Message 4 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.