Alternatives to Git Submodules?

后端 未结 5 1369
渐次进展
渐次进展 2020-11-29 19:05

I feel that using Git submodules is somehow troublesome for my development workflow. I\'ve heard about Git subtree and Gitslave.

  • Are there more tools out ther
5条回答
  •  暖寄归人
    2020-11-29 19:39

    I currently use submodules for development and not just relating 3rd party libraries. There are some ways that you can make life easier with submodules, especially when they are the source of merge or rebase conflicts. Look to ls-tree to get the 2 commits involved on a conflict in the submodule. This is probably the most difficult part of submodules for people to deal with. For now scripting will make this much easier to work with. Future versions of Git should have better native support for dealing with them.

    Hope this helps.

提交回复
热议问题