开发者

Git - Branching and a shared code base

开发者 https://www.devze.com 2023-01-07 02:19 出处:网络
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 requ

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

精彩评论

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