I'm trying to view commits made by a specific user, and want to remove any merges done by the user from the output. How can I do so?
I can check for the commits of a user using git log --author=<name>
, but can't remove the merge commits in the output.
PS: Merge conflicts do not happen in the workflow of the repo in question, all branches are rebased before merging into master so it is safe to remove the merge commits from the output, and similarly, two feature branches are not merged with one another raising the possiblity.
git log
(exclude feature commits), showing only commits tomain
or merges tomain
– Tishtisha