Git branches with completely different content

前端 未结 6 1025
自闭症患者
自闭症患者 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:01

    I personally would not store different content in different branches; in the case of docs and code, I would just make a myproject.git and a myproject-docs.git (and sub-module the docs into the code if it was necessary for the build process).

    On the other hand, nothing bad will happen if you do this. Git is not going to tell you what to do, so you are free to make your own decision on how you want to use it. So to answer your question, it's neither a killer feature, nor something that will bowl you over if you are not careful. It's just how someone choses to use it.

提交回复
热议问题