Skip to content
The Git Crypt

/static/cripta/en/ossada/cherry/

Menu

GIT-016 · Plumbing

git cherry

Tells which of your commits haven't landed on the other side — by content, not hash.

Not to be confused with cherry-pick: cherry, the command, only compares. For each commit on your branch, it checks whether an equivalent exists on the upstream — comparing the patch, not the hash — marking with - what already landed there and with + what is still missing.

It shines after other people's rebases and cherry-picks, when hashes changed but content crossed over: log swears the commits diverge; cherry tells which ones are actually news.

$ git cherry -v main topico
- d1f8e3b http: extrai o handler de artigos
+ 7a5b8c9 http: cache de templates em memória
The minus already lives in main; the plus still waits.