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
?
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