GIT-MISSING(1)
β¨ GIT-MISSING π
okay bestie so git-missing is a little Git Extras gem β it shows you the commits that live in one of two branches but not both. it's giving "what would actually come across if i merged or pushed this rn" energy, and yes you can narrow it down to specific paths if that's your vibe. π¦
πΈ SYNOPSIS πΈ
git-missing [<first branch>] <second branch> [<git log options>] [[--]
<path>...]
π DESCRIPTION π
So the whole point: it shows the commits that are in either of two branches but not both. One branch has them, the other one literally does not. That's the tea. π«
Why do you care? Because it's perfect for peeking at what would come across in a merge or a push, before you actually do the thing. No surprises, no chaos, just receipts. β¨
And if you only want to snoop on certain files or folders, you can β the comparison can optionally be limited to specific paths. Lowkey the best feature. π
π OPTIONS π
[<first branch>]β the first branch you're comparing. if you don't say anything, it defaults to the branch you currently have checked out. main character defaults, honestly. π<second branch>β the second branch in the comparison. you do have to give this one, no skipping. π[<git log options>]β literally any flags you'd want passed straight through togit log, such as--no-merges. whatevergit logcan eat, this can eat. π₯[[--] <path>...]β optional path specifications (a.k.a. pathspec) to limit the comparison to specific files or directories. for more details about the pathspec syntax, see the pathspec entry ingitglossary[7]at <https://git-scm.com/docs/gitglossary#Documentation/gitglossary.txt-aiddefpathspecapathspec>. π
π EXAMPLES π
show commits on either my current branch or master but not both:
$ git missing master
< d14b8f0 only on current checked out branch
> 97ef387 only on master
show commits on either branch foo or branch bar but not both:
$ git missing foo bar
< b8f0d14 only on foo
> f38797e only on bar
show commits on either my current branch or master but not both, limited to the src/ directory:
$ git missing master -- src/
< ed52989 only on current checked out branch, in src/ directory
> 7988c4b only on master, in src/ directory
π§ AUTHOR π§
Written by Nate Jones <nate@endot.org> β ty for your service, king. π
π REPORTING BUGS π
found something cursed? spill it here: <https://github.com/tj/git-extras/issues> π
β SEE ALSO β
<https://github.com/tj/git-extras> β the whole Git Extras fam. go explore, bestie. π«Ά
and that's a wrap on the Git Extras era of git-missing β this version is dated May 2026, so you're reading the freshest edition, periodt. πβ¨ no cap, now go compare some branches and slay. ππ¦
π¦ where this page comes from
- ubuntu stonking: git-extras 7.5.0-1 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms