Git branches with completely different content

前端 未结 6 1009
自闭症患者
自闭症患者 2020-12-08 04:30

Since Git has the ability to keep track (and keep it clean) of branches with completely different content from each other, in the same repository, some projects (like Git it

6条回答
  •  有刺的猬
    2020-12-08 05:19

    I'd say it's more like a lazy workaround for the fact that Git can't currently handle having multiple projects stored in the same repository. You can do it, but there's no way to pull down just the one you want.

    I say "lazy", because it wouldn't have been too horribly tough to add the feature when the git developers themselves discovered a need for it (for storing docs). Since they used this weird branch hack, their incentive to fix the issue for everyone else has abated significanly.

提交回复
热议问题