说,我有一个现有的git仓库,我命名工作 - B2C,给它一个URL https://github.com/XXX/angular-portal-b2c.git如何使用另一个混帐回购协议作为我的现有回购的依赖
我还有一个混帐回购协议称为B2C库,其中包含有用的预建库。 URL:https://github.com/XXX/angular-portal-library.git
我想能够在我的b2c项目中使用b2c-library,就像依赖项一样,在node_modules中它应该有一个名为b2c-library的文件夹。
我应该遵循哪些步骤?
谢谢。
正如我所说,它应该就像一个应该出现在你的node_modules中的依赖关系。 当你执行npm install时,b2c-library应该安装在node_modules中,git status不应该追踪你在b2c-library中所做的任何事情,即使你是在这个repo中。
可能重复的[我怎么可以链接依赖在git回购?](https://stackoverflow.com/questions/7813030/how-can-i-have-linked-dependencies-in-a-git-回购) – t0mm13b