Best way to add sub module ignored content

早过忘川 提交于 2019-12-06 20:56:35

I'd suggest using a symlink to the local files:

a
├── b
│   └── local -> ../b-local
└── b-local

This nicely separates content of repo a from that of repo b. Furthermore, as b/local is gitignored, it should not be very intrusive to your current workflow.

Alternatively, git subtree might be worth a look. It would let you import repo (B) as a subdirectory into repo (A). Users of your repo would just have to clone a single repo and wouldn't have to go through the pesky git submodule update --init step. The history of project (B) could be either squashed or kept completely as is.

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