mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-08-22 09:46:42 +02:00
Merge remote-tracking branch 'origin/develop' into pr/emersonbottero/3678
* origin/develop: docs(git): Regenerate docs(git): Add a quoted branch name example fix(git): Support quoted branch names Ensure example code and rendered output are synced Fill inheritance arrow with background color
This commit is contained in:
@@ -169,7 +169,7 @@ In this example, we have given custom tags to the commits. Also, see how we have
|
||||
|
||||
### Create a new branch
|
||||
|
||||
In Mermaid, in-order to create a new branch, you make use of the `branch` keyword. You also need to provide a name of the new branch. The name has to be unique and cannot be that of an existing branch. Usage example: `branch develop`
|
||||
In Mermaid, in-order to create a new branch, you make use of the `branch` keyword. You also need to provide a name of the new branch. The name has to be unique and cannot be that of an existing branch. A branch name that could be confused for a keyword must be quoted within `""`. Usage examples: `branch develop`, `branch "cherry-pick"`
|
||||
|
||||
When Mermaid, reads the `branch` keyword, it creates a new branch and sets it as the current branch. Equivalent to you creating a new branch and checking it out in Git world.
|
||||
|
||||
|
Reference in New Issue
Block a user