Git submodules workflow

后端 未结 2 1343
一生所求
一生所求 2020-11-28 23:48

In my project I need to use third party code, stored in several Git repositories. My project is also stored in (separate) Git repository. There are several people working wi

相关标签:
2条回答
  • 2020-11-29 00:18

    You may want to try git subtree (alt link) instead. I’ve had a lot of luck with it, using both remote repos and clean (untied to master history) branches in my project.

    0 讨论(0)
  • 2020-11-29 00:36

    A recent thread on the git mailing list includes a patch for how to get a consistent repository state with a single command. It basically calls git submodule update when changing branches.

    http://thread.gmane.org/gmane.comp.version-control.git/130155/focus=130330

    0 讨论(0)
提交回复
热议问题