Skip to content

Latest commit

 

History

History
84 lines (70 loc) · 1.39 KB

git.md

File metadata and controls

84 lines (70 loc) · 1.39 KB

Git graphs cheatsheet

Live editor.

Graph direction

gitGraph LR:
    checkout master
    commit
    commit
    commit
Loading
gitGraph LR:
    checkout master
    commit
    commit
    commit
gitGraph BT:
    checkout master
    commit
    commit
    commit
Loading
gitGraph BT:
    checkout master
    commit
    commit
    commit

Commit messages

gitGraph BT:
    checkout master
    commit "Commit message"
    commit "Another message"
    commit "Yet another message"
Loading
gitGraph BT:
    checkout master
    commit "Commit message"
    commit "Another message"
    commit "Yet another message"

Branching, checking out, and merging

gitGraph BT:
    commit
    branch branch2
    checkout branch2
    commit
    checkout master
    commit
    merge branch2
Loading
gitGraph BT:
    commit
    branch branch2
    checkout branch2
    commit
    checkout master
    commit
    merge branch2

Notes

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