github - Git submodules and composer clarification -
i have created php project. in project under vendor/ have included using composer other 3rd party modules. think came .git folder.
finally decided add code under git. have problems. of 3rd party modules came .git folder without ( idk reason ). why happen clue ?
in root folder have nothing in .gitmodules.
when git status
get:
# modified: vendor/somemodule (modified content)
what should in case, what's best way handle this. want able still updated changes in libraries , keep track of modules in repository ( beanstalk ) when merged master branch upload live server.
any ideas, links read helpful. don't know if submodules or not yet.
an image vendor:
thanks.
the op marius.c confirms:
when git status get:
# modified: vendor/somemodule (modified content)
that mean vendor/somemodule
submodule (see "strange icon , entry after corrupt commit").
but root issue seems issue composer, commented op.
should commit dependencies in vendor directory?
the general recommendation no.
vendor
directory (or wherever dependencies installed) should added.gitignore/svn:ignore/etc
.
considering changes seen far seem not important, ignoring vendor
should best approach.
Comments
Post a Comment