Git · Branches and merges

git cherry

Lists commits on a branch that are not yet upstream, with +/- markers.

Syntax
git cherry -v main

Example

Example
git cherry -v main

More in this group

git branch --merged git branch -d git branch -D (force delete) git branch -m git checkout -b git merge --ff-only git merge --no-commit git merge --squash

Learn this in the course

Reference pages are the quick answer. The course explains the why, shows the full example and ends with a challenge.

Open the course