Hendrik Lammers

Show commits in a branch

To see all the commits only for a specific branch, this command can be used:

git log main..feature-branch

In this case main is the branch from which the feature-branch was created and only commits made since then on the feature-branch will be shown.