看来您对 git 的工作方式有点误解(这很正常,因为您说您是 git 新手)
每个分支不一定都有自己的线路。如果您的分支Sprint_15
有它的基础,master
并且Sprint_15
是任意数量的提交,master
那么它们将共享同一行。一旦master
获得新的提交,我想你会看到你所期望的。
你可以像这样在一个单独的 git repo 中测试它。
$ mkdir testing && cd testing
$ git init # should put you on master branch by default
$ touch testFile.txt
$ git add -A
$ git commit -m "initial commit"
$ git branch newBranch
$ git checkout newBranch # switch from master to newBranch
### modify the testFile.txt in some way and then...
$ git add -A
$ git commit -m "first commit on newBranch"
现在,如果您使用相同的工具查看您的 repo,您应该只会看到一行,如下所示:

现在回到主分支并进行另一个提交:
$ git checkout master
### make another change to testFile.txt
$ git add -A
$ git commit -m "second commit on master"
现在您将看到每个分支都有自己的行,就像您期望的那样,如下所示: