# comark/git-graph/invalid-max-count

`max-count` keeps the newest commits, as `git log -n` does, and folds the rest into one row. It takes a whole number from 1; anything else is ignored and every commit shows.

**Incorrect**

````md
::git-graph{max-count="two"}
```
* 5b8cb33 ef1419c (HEAD -> main) Stop polling closed flows (#815)
| * 869bb73 ef1419c (release/2.3) Bundle the enterprise SKU
|/
* ef1419c Alert links keep their filters (#812)
```
::
````

**Correct**

````md
::git-graph{max-count=2}
```
* 5b8cb33 ef1419c (HEAD -> main) Stop polling closed flows (#815)
| * 869bb73 ef1419c (release/2.3) Bundle the enterprise SKU
|/
* ef1419c Alert links keep their filters (#812)
```
::
````

<!-- vitehub-docs:section-links -->
## In this section

- [Doctor](https://comark-ui.onmax.me/raw/doctor.md)
- [annotate](https://comark-ui.onmax.me/raw/doctor/annotate/annotation-outside-screenshot.md)
- [badge](https://comark-ui.onmax.me/raw/doctor/badge/empty-badge.md)
- [Core](https://comark-ui.onmax.me/raw/doctor/blocked-url.md)
- [bundle](https://comark-ui.onmax.me/raw/doctor/bundle/content-dropped.md)
- [cards](https://comark-ui.onmax.me/raw/doctor/cards/empty-columns.md)
- [carousel](https://comark-ui.onmax.me/raw/doctor/carousel/content-outside-slide.md)
- [cast](https://comark-ui.onmax.me/raw/doctor/cast/file-not-found.md)
- [charts](https://comark-ui.onmax.me/raw/doctor/charts/content-dropped.md)
- [chips](https://comark-ui.onmax.me/raw/doctor/chips/invalid-avatar.md)
- [code-notes](https://comark-ui.onmax.me/raw/doctor/code-notes/marker-without-note.md)
- [code](https://comark-ui.onmax.me/raw/doctor/code/invalid-range.md)
- [colors](https://comark-ui.onmax.me/raw/doctor/colors/content-dropped.md)
- [comments](https://comark-ui.onmax.me/raw/doctor/comments/duplicate-id.md)
- [critic](https://comark-ui.onmax.me/raw/doctor/critic/invalid-mode.md)
- [details](https://comark-ui.onmax.me/raw/doctor/details/content-outside-item.md)
- [diagrams](https://comark-ui.onmax.me/raw/doctor/diagrams/authored-svg.md)
- [diff](https://comark-ui.onmax.me/raw/doctor/diff/block-count.md)
- [embed](https://comark-ui.onmax.me/raw/doctor/embed/card-without-title.md)
- [fields](https://comark-ui.onmax.me/raw/doctor/fields/description-ignored.md)
- [file-tree](https://comark-ui.onmax.me/raw/doctor/file-tree/content-dropped.md)
- [footnotes](https://comark-ui.onmax.me/raw/doctor/footnotes/duplicate-definition.md)
- git-graph
  - [content-dropped](https://comark-ui.onmax.me/raw/doctor/git-graph/content-dropped.md)
  - [invalid-max-count](https://comark-ui.onmax.me/raw/doctor/git-graph/invalid-max-count.md) (this page)
  - [missing-log](https://comark-ui.onmax.me/raw/doctor/git-graph/missing-log.md)
  - [missing-parents](https://comark-ui.onmax.me/raw/doctor/git-graph/missing-parents.md)
  - [unknown-branch](https://comark-ui.onmax.me/raw/doctor/git-graph/unknown-branch.md)
  - [unknown-commit](https://comark-ui.onmax.me/raw/doctor/git-graph/unknown-commit.md)
  - [unknown-prop](https://comark-ui.onmax.me/raw/doctor/git-graph/unknown-prop.md)
- [github](https://comark-ui.onmax.me/raw/doctor/github/invalid-repo.md)
- [icon](https://comark-ui.onmax.me/raw/doctor/icon/download-failed.md)
- [include](https://comark-ui.onmax.me/raw/doctor/include/file-not-found.md)
- [magic-move](https://comark-ui.onmax.me/raw/doctor/magic-move/content-in-magic-move.md)
- [math](https://comark-ui.onmax.me/raw/doctor/math/authored-html.md)
- [media](https://comark-ui.onmax.me/raw/doctor/media/autoplay-without-muted.md)
- [mermaid](https://comark-ui.onmax.me/raw/doctor/mermaid/source-too-long.md)
- [metrics](https://comark-ui.onmax.me/raw/doctor/metrics/column-count.md)
- [outline](https://comark-ui.onmax.me/raw/doctor/outline/content-dropped.md)
- [properties](https://comark-ui.onmax.me/raw/doctor/properties/content-dropped.md)
- [qr](https://comark-ui.onmax.me/raw/doctor/qr/content-dropped.md)
- [quiz](https://comark-ui.onmax.me/raw/doctor/quiz/correct-in-poll.md)
- [shiki](https://comark-ui.onmax.me/raw/doctor/shiki/source-too-long.md)
- [sources](https://comark-ui.onmax.me/raw/doctor/sources/content-dropped.md)
- [steps](https://comark-ui.onmax.me/raw/doctor/steps/content-before-steps.md)
- [table](https://comark-ui.onmax.me/raw/doctor/table/base-outside-root.md)
- [tabs](https://comark-ui.onmax.me/raw/doctor/tabs/content-in-code-group.md)
- [tests](https://comark-ui.onmax.me/raw/doctor/tests/content-dropped.md)
- [time](https://comark-ui.onmax.me/raw/doctor/time/invalid-date.md)
- [xref](https://comark-ui.onmax.me/raw/doctor/xref/duplicate-label.md)

Next: [missing-log](https://comark-ui.onmax.me/raw/doctor/git-graph/missing-log.md)

All pages: [llms.txt](https://comark-ui.onmax.me/llms.txt)
