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?
>Solution :
The closest thing you can get is to only display first parents :
git log --first-parent master
git log --first-parent --graph --oneline master