Files
30-seconds-of-code/snippets/git/s/view-commits-summary-no-merges.md
2023-05-07 16:07:29 +03:00

23 lines
489 B
Markdown

---
title: View a short summary of commits without merge commits
type: snippet
language: git
tags: [repository,commit]
cover: river-flow
dateModified: 2021-04-13T21:10:59+03:00
---
Prints a short summary of all commits excluding merge commits.
- Use `git log --oneline --no-merges` to list a short summary of all commits without merge commits.
```shell
git log --oneline --no-merges
```
```shell
git log --oneline --no-merges
# 3050fc0de Fix network bug
# c191f90c7 Initial commit
```