![]() Here, a new commit representing the cherry-pick is created on the current branch, and is visually highlighted in the diagram with a cherry and a tag depicting the commit id from which it is cherry-picked from. To use the cherry-pick keyword, you must specify the id using the id attribute, followed by : and your desired commit id within a "" quote. You can also cherry-pick a commit from another branch using the cherry-pick keyword. Similar to how 'git' allows you to cherry-pick a commit from another branch onto the current branch, Mermaid also supports this functionality. Let us see how this works with the help of the following diagram: Code: For example: merge develop id: "my_custom_id" tag: "my_custom_tag" type: REVERSE Here you can use other commit type mentioned earlier.Īnd you can choose to use none, some or all of these attributes together. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |