GitHub 42
Skip to content

comark/git-graph/unknown-branch

Pick onto branches the log shows

A git switch, git cherry, or git cherry-pick in the transcript names a branch, and the block draws its picks in that branch's lane. A branch the git log above leaves out has no lane, so its picks aren't drawn. Add the branch to the git log command, or run it with --all.

Incorrect

1 branch · 2 commits
#815 Stop polling closed flowsmain5b8cb33
#812 Alert links keep their filtersef1419c
::git-graph
```
$ git log --graph --oneline --decorate --parents main
* 5b8cb33 ef1419c (HEAD -> main) Stop polling closed flows (#815)
* ef1419c Alert links keep their filters (#812)
$ git switch release/2.3
Switched to branch 'release/2.3'
```
::
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
```
$ git log --graph --oneline --decorate --parents main release/2.3
* 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)
$ git switch release/2.3
Switched to branch 'release/2.3'
```
::
md