Skip to content

Commit

Permalink
#3080 Updated docs for cherry pick functionality
Browse files Browse the repository at this point in the history
  • Loading branch information
ashishjain0512 committed Jun 7, 2022
1 parent e3df38e commit 84ae430
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/gitgraph.md
Expand Up @@ -185,6 +185,10 @@ Since the current branch at this point is still `main`, the last two commits are
### Cherry Pick commit from another branch
Similar to how 'git' allows you to cherry pick a commit from **another branch** onto the **current** branch, Mermaid also suports this functionality. You can also cherry pick a commit from another branch using the `cherry-pick` keyword.

To use the `cherry-pick` keyword, you must specify the id using the `id` attribute, followed by `:` and your desired commit id within `""` quote. For example:

`cherry-pick id: "your_custom_id"`

Here, a new commt 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.

Few Important rules to note here are:
Expand Down

0 comments on commit 84ae430

Please sign in to comment.