How to handle dependancy when switching git branches?

若如初见. 提交于 2019-12-11 11:19:47

问题


How does one handle .dll dependencies when switching branches in Git? I have only source code in git but when I switch to older branch and want to compile I will be compiling against newer version dependancies as my reference is not in the git repo.


回答1:


Good flow is to have dependencies described in your source code and a way to clean/fetch anew based on the branch you've just switched to.

In the unfortunate case you have to fetch the dependencies manually, you could probably have multiple working directories for your major branches/releases.



来源:https://stackoverflow.com/questions/28056190/how-to-handle-dependancy-when-switching-git-branches

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!