Skip to content
Permalink
main
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time

Git graphs cheatsheet

Live editor.

Basic graph

gitGraph:
    commit
    commit
    commit
gitGraph:
    commit
    commit
    commit

Branching, checking out, and merging

gitGraph:
    commit
    branch branch2
    checkout branch2
    commit
    checkout main
    commit
    merge branch2
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.