Skip to content

Instantly share code, notes, and snippets.

@farisdurrani
Last active September 16, 2024 02:51
Show Gist options
  • Save farisdurrani/cebe1c0c820dc8cd18501acd4a4a300c to your computer and use it in GitHub Desktop.
Save farisdurrani/cebe1c0c820dc8cd18501acd4a4a300c to your computer and use it in GitHub Desktop.

Flowchart Simple Example

flowchart TD
    A([Start])
    --> B[Task 1]
    --> C[Task 2]
    --> D([End])
Loading

Flowchart Standard Example

flowchart TD
    R([Start])
    --> A[Gather requirements]
    --> B[Set up OCI tenancy]
    --> B1{Use IaC?}
    B1 -- yes --> C[Create github repo]
    --> D[Create terraform]
    --> E[Provision cloud resources]
    B1 -- no --> F[Use console]
Loading

Flowchart Mermaid Example (Git Submodules)

flowchart LR
    A[(this repo)]
    B(folder1)
    C(folder2)
    D(modules)
    E(...)

    subgraph submodules
        M[(resources)]
    end

    P[(other repo)]
    Q(...)
    R(modules)

    A---B
    A---C
    A---D
    A---E
    D---M
    P---Q
    P---R
    R---M
Loading

Gitgraph Mermaid Example

gitGraph
    commit
    branch hotfix

    checkout main
    checkout hotfix
    commit
    commit
    checkout main
    merge hotfix
    commit

    checkout main
    branch development

    checkout main
    commit
    merge development tag: "v1.0.12"

    checkout development
    commit
    branch feature-1
    branch feature-2

    checkout feature-1
    commit
    commit

    checkout feature-2
    commit

    checkout feature-1
    commit

    checkout development
    merge feature-1
    
    checkout feature-2
    commit
    
    checkout development
    merge feature-2
    
    checkout main
    merge development tag: "v1.0.13"
Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment