创建此 git 图表的命令是什么

what are the commands that will create this git graph

大家好,我是 git 的新手,我正在做一个项目,我需要尊重这张图 我只想知道我能做些什么来得到这张 git 图 什么是请给出命令和解释

据我所知,每个顶点都是一个提交所有标签都是分支名称 我不知道从哪里开始,比如我需要先创建所有分支还是根本不清楚

git init                                 # initialize a git repo
git commit --allow-empty -m foo          # create a commit with message "foo"
git checkout -b feature1                 # create and check out a branch named "feature1" from the current commit
git commit --allow-empty -m bar          # create a commit with message "bar"
git checkout -b feature2                 # create and check out a branch named "feature2" from the current commit
git commit --allow-empty -m baz          # create a commit with message "baz"
git checkout -b feature3                 # create and check out a branch named "feature3" from the current commit
git commit --allow-empty -m qux          # create a commit with message "qux"
git checkout master                      # check out branch "master"
git commit --allow-empty -m toto         # create a commit with message "toto"
git merge -m 'merge feature 1' feature1  # merge feature1 with message "merge feature 1"
git merge -m 'merge feature 2' feature2  # merge feature2 with message "merge feature 2"
git merge -m 'merge feature 3' feature3  # merge feature3 with message "merge feature 3"