block-beta
columns 1
block:notes
space:2 f["pointer that stores the current\nstate. The circumflex is a\nshortcut for the last commit"]
end
block:command
a("git") b("reset") c("HEAD^")
end
block:notes2
space g["command that resets to\nprevious state"] space
end
%% arrows %%
b --> g
c --> f
classDef textFont font-family:'Chilanka', font-size:1.2em, font-color:#000, line-height:2em;
%% styling %%
classDef transparent fill:#fff, stroke:#fff;
class a,b,c,d,e,f,g,h,i,j,k,l,notes,notes2,command,info transparent
classDef commandFont font-family:'Borel', font-size:1.6em, line-height:2.2em;
class a,b,c,d,e,k commandFont
class f,g,h,i,j,l textFont
You might also be interested in reading this article:
Creating a new branch and switching to it with just one command