Home > Software design >  How to list commits in one branch
How to list commits in one branch

Time:07-07

I have two branches: master and feature that merged before, How do I just show all commits from master branch using commands like git log?enter image description here

CodePudding user response:

The closest thing you can get is to only display first parents :

git log --first-parent master
git log --first-parent --graph --oneline master

CodePudding user response:

git log --first-parent should work

  •  Tags:  
  • git
  • Related