Hi Peter, The Git term for directories(folders) and sub-directories(sub-folders) is "Trees".
The directories/folders terms are for Unix/Windows in some order or other (no doubt for some copyright/licence reason originally). The slight difference is that a Git 'tree' will only (formally) contain the files and sub-trees that are known to Git, so if you haven't 'add'ed a file to make it tracked, then Git doesn't really care that much (it tries to avoid corrupting it!). Internally the file contents are the "Blobs". These are the just contents of the file, so you get implicit de-duplication if file contents are identical. The filenames are stored in their respective trees. And the directory names are stored in the next tree up. So if you have two directories with identical content (inc file names), then they get de-duped as well! There are various articles on the git internals which are worth a read. Philip ----- Original Message ----- From: pro...@ucsd.edu To: Git for human beings Sent: Thursday, June 01, 2017 8:35 PM Subject: [git-users] Do I need a git repository for every directory or just one for the root directory? How does git handle multiple directories and sub-directoreis? 'm developing a system with code files in several different directories & sub-directories, but when I search the git manual I find nothing about directories. Thanks for any help with what may be totally dumb question. Peter R -- You received this message because you are subscribed to the Google Groups "Git for human beings" group. To unsubscribe from this group and stop receiving emails from it, send an email to git-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "Git for human beings" group. To unsubscribe from this group and stop receiving emails from it, send an email to git-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.