Every commit is a line, and the commits land on the branch you are on.
gitGraph
commit
commit
commitbranch starts a branch, and checkout goes back to one you were on.
gitGraph
commit
branch develop
commit
checkout main
commitmerge folds a branch back into the one you are on.
gitGraph
commit
branch feature
commit
checkout main
merge featureThe tag goes after the commit keyword, in quotes.
gitGraph
commit tag: "v1.0"
commit tag: "v1.1"