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 to git log, such as --no-merges. whatever git log can 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 in gitglossary[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