In git it is possible to create a new orphaned branch, that has no parent.
git checkout --orphan=unrelated-branch
The commits made on this branch can be later merged with --allow-unrelated-histories
This is also useful when we have two independent repositories with different (ideally non-conflicting) files, that at some point we want to merge into a single one.
Example
I imagine this could be expressed in Mermaid something like:
Proposal
In git it is possible to create a new orphaned branch, that has no parent.
git checkout --orphan=unrelated-branch
The commits made on this branch can be later merged with
--allow-unrelated-histories
This is also useful when we have two independent repositories with different (ideally non-conflicting) files, that at some point we want to merge into a single one.
Example
I imagine this could be expressed in Mermaid something like:
and should render something like this:![image](https://github.com/mermaid-js/mermaid/assets/7002/6057a5a8-d6dc-44bc-a0c4-3a302f5ea735)
Screenshots
No response