GitHub 42
Skip to content

comark/git-graph/missing-parents

Run git log with --parents

Without --parents, git log prints each commit without the commits it came from, so the block can't tell a branch from the next commit on main and draws them all in one line. Run the command again with --parents: each line then lists the parents after the commit's own hash.

Incorrect

1 branch · 3 commits
#815 Stop polling closed flowsmain5b8cb33
Bundle the enterprise SKU869bb73
#812 Alert links keep their filtersef1419c
```git-graph
* 5b8cb33 (HEAD -> main) Stop polling closed flows (#815)
| * 869bb73 (release/2.3) Bundle the enterprise SKU
|/
* ef1419c Alert links keep their filters (#812)
```
md

Correct

2 branches · 3 commits
#815 Stop polling closed flowsmain5b8cb33
Bundle the enterprise SKUrelease/2.3869bb73
#812 Alert links keep their filtersef1419c
```git-graph
* 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)
```
md