LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   set directory structure in git (https://www.linuxquestions.org/questions/linux-newbie-8/set-directory-structure-in-git-888218/)

xeon123 06-24-2011 06:58 PM

set directory structure in git
 
Hi,

I've the following file structure that I would like to add to git.

Code:

/app
/app/src (100MB of size)
/app/books (200MB of size)
/app/apps (400MB of size)

These are big directories and I don't need them all checked out. I only need the src directory. After I commit the files in the /app/src, it must be pushed to a remote site.

If I want only to checkout the src directory to work on, it's important to create a special file structure in git? For example, instead of doing git init on app general directory, should I do git init on all subdirectories?

Is it possible to checkout only part of a file structure in git?

xeon123 06-24-2011 07:15 PM

I this I should use git submodule


All times are GMT -5. The time now is 12:46 PM.