Skip to content

Latest commit

 

History

History
61 lines (52 loc) · 1.14 KB

gitlocal.md

File metadata and controls

61 lines (52 loc) · 1.14 KB

This repo is just to contain a few diagrams

A repo after a few commits. HEAD points at last commit.

  graph LR
      A(Commit m:0)-->B(Commit m:1);
      B-->C(Commit m:2);
      D(HEAD m)-->C;
Loading

Adding one more commit updates HEAD to point at latest

  graph LR
      A(Commit m:0)-->B(Commit m:1);
      B-->C(Commit m:2);
      C-->D(Commit m:3)
      E(HEAD m)-->D;
Loading

Branching from main:HEAD

  graph LR
      A(Commit m:0)-->B(Commit m:1);
      B-->C(Commit m:2);
      C-->D(Commit m:3)
      D-->E(Commit m:4)
      F(HEAD m)-->E;
      D-->G(Commit b1:1)
      G-->H(Commit b1:2)
      I(HEAD b1)-->H
Loading

Merging from HEAD b1 to main

  graph LR
      A(Commit m:0)-->B(Commit m:1);
      B-->C(Commit m:2);
      C-->D(Commit m:3);
      D-->E(Commit m:4);
      D-->G(Commit b1:1);
      G-->H(Commit b1:2);
      I(HEAD b1)-->H;
      E-->J(Commit m:5);
      H-->J;
      F(HEAD m)-->J;
Loading

After removing branch 1

  graph LR
      A(Commit m:0)-->B(Commit m:1);
      B-->C(Commit m:2);
      C-->D(Commit m:3);
      D-->E(Commit m:4);
      E-->J(Commit m:5);
      F(HEAD m)-->J;
Loading