i have following directory structure:
- a -> b -> c
- a -> x -> c
a repository. x , b projects (i have 5 not 2). c directory lots of code. not want place c in projects , copy before each commit. able link cs same spot. c has under each 1 of them because separate projects sent separately.
is there way have 1 c in git, few in directory structure? maybe symbolic link?
use submodules, allow link 1 git repository others.
i believe possible use repository multiple times submodule in same top-level repository, although haven't tried myself.
submodules superior symlinks in situation; though git recognize files duplicated , store 1 copy of each (even if don't use symlinks), , though symlink propagate changes of repositories, git still require individually commit changes in each of symlinked files.
Comments
Post a Comment