Git automatically declaring subprojects as submodules? -
i had project in 'www' folder.
in 'www/vendor', cloned other projects github. cloned them, never did make them submodules or subtrees.
quite often, worked on these subprojects, contributed upstream, etc. had cd
directory 'www/vendor/projectx' , use git commit there, , if independent projects. go 'www' , make commit there acknowledge changes in subprojects main project. great , simple.
then moved 'www/vendor' 'www/php/vendor'. did git add php
, committed change, , 'www/php/vendor/*' folders empty on remote server. on machine, files still here git status
says there nothing commit.
i don't know looks if subprojects had automatically been declared submodules when moved them. see no trace of it: no .gitmodule, nothing in modules folder. , when git rm
:
$ git rm php/vendor/projectx error: following submodule (or 1 of nested submodules) uses .git directory: php/vendor/projectx
am missing or git bug? i'd go way worked before, without deleting .git folders of subprojects or using submodules.
i've been using git 1.8.4 , 1.8.5.2 in windows.
this default behavior of git. doesn't know these repos other declare them submodules.
you ignore paths keep other git repos. if update them package/dependency manager , keep lock file in root repo.
Comments
Post a Comment