When should git orphaned branches be used?
Git可以使用
在Git中使用孤立分支还有其他原因吗?
另一种可能的用途是将多个存储库组合成一个存储库。举几个例子:
- 网址:http://www.gelato.unsw.edu.au/archives/git/0506/5511.html
- http://jasonkarns.com/blog/merge-two-git-stores-into-one/
- 组合多个Git存储库
在这些情况下,在将DAG合并到单个统一树之前,您将在同一存储库中拥有两个单独的DAG。因此,这并不是一个长期的使用,而是一个临时通过在同一个存储库中拥有独立DAG的状态的操作。
This can be useful when you want to publish the tree from a commit
without exposing its full history. You might want to do this to
publish an open source branch of a project whose current tree is
"clean", but whose full history contains proprietary or otherwise encumbered bits of code.