How to let Composer import working copy of existing (git) folder? -
i've got couple git projects , i'm working in 2 @ same time. want import 1 of project other using composer. try using following lines in composer.json file:
"repositories": [ { "type": "vcs", "url": "../otherproject" }, { "type": "composer", "url": "http://our.local.stuff.com" } ],
this seem import project, latest commit in git repo. instead, import existing files how are, don't have commit every little change in project.
does know how possible? tips welcome!
composer clone remote repository, , can work inside folder git repository when located anywhere else.
saving changes files make them effective immediately. adding , committing them persist them in repo locally. pushing branch makes changes available others.
the thing should aware of using composer command might destroy uncommitted changes. careful when installing or updating when have uncommitted changes.
Comments
Post a Comment