Skip to content

Latest commit

 

History

History
48 lines (39 loc) · 920 Bytes

git.md

File metadata and controls

48 lines (39 loc) · 920 Bytes

Git graphs cheatsheet

Live editor.

Basic graph

gitGraph:
    commit
    commit
    commit
Loading
gitGraph:
    commit
    commit
    commit

Branching, checking out, and merging

gitGraph:
    commit
    branch branch2
    checkout branch2
    commit
    checkout main
    commit
    merge branch2
Loading
gitGraph:
    commit
    branch branch2
    checkout branch2
    commit
    checkout main
    commit
    merge branch2

Notes

  • There is no official documentation yet for git graphs.
  • The git commits seem to change frequently, and cannot be specified.