开发者

Git - Branching and a shared code base

Well, till now, I used common git operations like push, pull, commit and clone.

But now, I need a git repo with di开发者_开发问答fferent branches to test certain features but all these features require the same library which should be included in the repo.

What's the best pratice to do this?


git submodule would be a good practice (more on submodules here).

Reference in your project another repo which contains only your external library.
Each branch can reference the same revision of that library repo.

The idea is to memorize (actually version) the exact dependency you need directly withni your project.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜