{"thread":{"id":"23320","subject":"Problem with add folder to a subdirectory","startedAt":"2010-04-03T08:26:26Z","lastAt":"2010-04-04T03:26:15Z","messageCount":4,"participants":["Aris Bezas","Ramkumar Ramachandra","Bo Yang"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"138493","messageId":"28125580.post@talk.nabble.com","threadId":"23320","inReplyTo":null,"subject":"Problem with add folder to a subdirectory","fromName":"Aris Bezas","fromEmail":"igoumeninja@gmail.com","sentAt":"2010-04-03T08:26:26Z","receivedAt":"2010-04-03T08:26:26Z","isPatch":false,"sender":{"key":"igoumeninja@gmail.com","avatar":null},"body":"\nHi,\nI am new to git and i have a problem. I clone repo from a collaborator and i\nwant to add some folder to a subdirectory.\nWhen i add a folder to the root dir ($ git add TestFolder) i have no problem\nbut when i try to put it in a different subdirectory like ($ git add\nexamples/TestFolder) then with the command ($ git status) i tsake no result\n(nothing to commit (working directory clean)).\n\nThanks for your reply\n\nAris Bezas Sat, 03 April 2010, 11:26\n-- \nView this message in context: http://old.nabble.com/Problem-with-add-folder-to-a-subdirectory-tp28125580p28125580.html\nSent from the git mailing list archive at Nabble.com.\n"},{"id":"138494","messageId":"h2yf3271551004030213u1441cf4akd0898aa3a418eda9@mail.gmail.com","threadId":"23320","inReplyTo":"28125580.post@talk.nabble.com","subject":"Re: Problem with add folder to a subdirectory","fromName":"Ramkumar Ramachandra","fromEmail":"artagnon@gmail.com","sentAt":"2010-04-03T09:13:37Z","receivedAt":"2010-04-03T09:13:37Z","isPatch":false,"sender":{"key":"r@artagnon.com","avatar":"https://avatars.githubusercontent.com/u/37226?v=4"},"body":"On Sat, Apr 3, 2010 at 1:56 PM, Aris Bezas <igoumeninja@gmail.com> wrote:\n> i tsake no result\n> (nothing to commit (working directory clean)).\n\nI suspect that you're trying to add an empty directory. Git tracks\ncontent, not individual files and directories- so try adding some\ncontent (read: a file), and then git-add'ing that.\n\n-- Ram\n"},{"id":"138504","messageId":"n2nf3271551004031125g38c52d0cq810ed366f3d1d2d3@mail.gmail.com","threadId":"23320","inReplyTo":"990EEB31-9AAB-4CF5-AC05-11BCA45C6447@gmail.com","subject":"Re: Problem with add folder to a subdirectory","fromName":"Ramkumar Ramachandra","fromEmail":"artagnon@gmail.com","sentAt":"2010-04-03T18:25:56Z","receivedAt":"2010-04-03T18:25:56Z","isPatch":false,"sender":{"key":"r@artagnon.com","avatar":"https://avatars.githubusercontent.com/u/37226?v=4"},"body":"[Kindly do not cull the list from CC unless absolutely necessary]\n\nOn Sat, Apr 3, 2010 at 11:45 PM, Aris Bezas <aribezas@gmail.com> wrote:\n> I put a content in the folder (test.txt file) but i there is no result.\n> The strange thing is that when i add this in the root directory (where the\n> git is) it recognize it but in a subdirection no.\n\nUnless I've misunderstood something, I'm not able to replicate your\nissue. Kindly go through some introductory material on Git.\n\n$ git init\nInitialized empty Git repository in /tmp/foo/.git/\n$ mkdir -p 1/2\n$ touch 1/2/test.txt\n$ git add 1/2\n$ git status\n# On branch master\n#\n# Initial commit\n#\n# Changes to be committed:\n#   (use \"git rm --cached <file>...\" to unstage)\n#\n#       new file:   1/2/test.txt\n#\n\n-- Ram\n"},{"id":"138522","messageId":"n2u41f08ee11004032026p9a0be36er7d2e017e294bbd35@mail.gmail.com","threadId":"23320","inReplyTo":"28125580.post@talk.nabble.com","subject":"Re: Problem with add folder to a subdirectory","fromName":"Bo Yang","fromEmail":"struggleyb.nku@gmail.com","sentAt":"2010-04-04T03:26:15Z","receivedAt":"2010-04-04T03:26:15Z","isPatch":false,"sender":{"key":"struggleyb.nku@gmail.com","avatar":"https://avatars.githubusercontent.com/u/233030?v=4"},"body":"Hi Aris,\nOn Sat, Apr 3, 2010 at 4:26 PM, Aris Bezas <igoumeninja@gmail.com> wrote:\n>\n> Hi,\n> I am new to git and i have a problem. I clone repo from a collaborator and i\n> want to add some folder to a subdirectory.\n> When i add a folder to the root dir ($ git add TestFolder) i have no problem\n> but when i try to put it in a different subdirectory like ($ git add\n> examples/TestFolder) then with the command ($ git status) i tsake no result\n> (nothing to commit (working directory clean)).\n\nAre you sure in the root directory, you can add an empty directory to\nthe index? I don't think so. See:\nhttps://git.wiki.kernel.org/index.php/GitFaq#Can_I_add_empty_directories.3F\n\nRegards!\nBo\n"}]}