Как добавить много проектов в один репозиторий git?
Я хочу добавить два существующих проекта в один репозиторий git. Я уже добавил один проект в хранилище, теперь я хочу добавить второй проект, не затрагивая первый.
1 ответ
Решение
Есть вариант через --orphan
ветка. Виз руководство:
--orphan
Create a new orphan branch, named <new_branch>, started from
<start_point> and switch to it. The first commit made on this new
branch will have no parents and it will be the root of a new history
totally disconnected from all the other branches and commits.
Это также хорошо объяснено здесь https://stackoverflow.com/questions/14679614/whats-the-best-practice-for-putting-multiple-projects-in-a-git-repository