[英]after I did git rebase it should so only one commit
git log --oneline --graph --decorate=short --all
* aaaa (HEAD -> swim-kick, origin/swim-kick) swim: width issue
* bbbb swim: functionError issue
* cccc Merge branch 'swim-kick' of gitlab.usaa.com:country into swim-kick
|\
| * dddd swim: border for close
* | eeee swim: border for close
|/
It would be easier if you could show the commands that you executed. 如果您可以显示您执行的命令会更容易。 The steps you would follow: 您将遵循的步骤:
git rebase origin/master -i
pick the first commit, squash or fixup the the rest of the commits. 选择第一次提交,压缩或修复其余的提交。
If you followed the above steps, the other possibility could be that you if you branched out of branch A and not master, it shows the commits of branch A as well 如果你按照上面的步骤,另一种可能性是,如果你分支出分支A而不是主分支,它也会显示分支A的提交
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.