Tuesday 15 May 2012

php - How to create two separate git repository in the same folder? -



php - How to create two separate git repository in the same folder? -

i have git repository linked folder in pc containing files , directory of drupal site. now, want redistribute code, want folders remain out of 'public' repository, stored in 'private' repository. like

drupal directory (git repository) | -- file1.php | -- file2.html | -- modules | -- sites

now, have repository containing whole stuff, ignoring 'sites' (contains .gitignore), , want info of 'sites' stored in different repository (so have private) without moving directory because changing directory position means site not work. solution, subtree, example, putting 'sites' directory out of main repository directory.

i need for, actually, 'sites' directory not on git , don't have online backup, need not accessed other.

i think need utilize git submodules. let's have library on repository b. programme on repository , uses library , needs have access source code. maintain library separated own software add together repository b submodule of repository a. each time create changes on library, repository b take care of track it, same own software.

of course of study each repository can have own configuration, repository can private while b can public, can changes create in library while own software remains closed source.

php git drupal

No comments:

Post a Comment