各ブランチは、必ずしもそれが自分のラインだ取得していません
(あなたは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"
、あなたはこのように、単一の行が表示されます。 今![same line](https://i.stack.imgur.com/BYKYI.png)
masterブランチに戻って作る別のコミット:
$ git checkout master
### make another change to testFile.txt
$ git add -A
$ git commit -m "second commit on master"
今、あなたはこのように、期待していたように、各ブランチは、それ自身のラインを持つ表示されます。![enter image description here](https://i.stack.imgur.com/bLjTY.png)
これをlと思われます私は正しい答え、説明のおかげで! –