我有两个分支的工作,master和feature-1
master
feature-1
在master分支中我使用了lib xyz@1.0
xyz@1.0
在分支机构中, feature-1我安装了lib xyz版本的新版本2.0
xyz
2.0
feature-1尚未在master分支上合并,因为它没有完成.然后,当我master再次切换到我要重新安装时lib@1.0,如果我再次切换到feature-1我要重新安装lib@2.0
lib@1.0
lib@2.0
这些案例中最好的工作流程方法是什么?
git branch node.js node-modules
branch ×1
git ×1
node-modules ×1
node.js ×1