Skip to content

Commit

Permalink
Documentation Modified New Ex Added
Browse files Browse the repository at this point in the history
  • Loading branch information
RounakJoshi09 committed Oct 23, 2023
1 parent 58e9e56 commit b0cfdcc
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions docs/syntax/gitgraph.md
Original file line number Diff line number Diff line change
Expand Up @@ -371,6 +371,42 @@ A few important rules to note here are:

Let see an example:

```mermaid-example
gitGraph
commit id: "ZERO"
branch develop
commit id:"A"
checkout main
commit id:"ONE"
checkout develop
commit id:"B"
checkout main
commit id:"TWO"
cherry-pick id:"A"
commit id:"THREE"
checkout develop
commit id:"C"
```

```mermaid
gitGraph
commit id: "ZERO"
branch develop
commit id:"A"
checkout main
commit id:"ONE"
checkout develop
commit id:"B"
checkout main
commit id:"TWO"
cherry-pick id:"A"
commit id:"THREE"
checkout develop
commit id:"C"
```

Cherry Picking Merge Commit:

```mermaid-example
gitGraph
commit id: "ZERO"
Expand Down

0 comments on commit b0cfdcc

Please sign in to comment.