Interview Prep/Git & GitHub/Git internals: objects, refs and the index

What is the difference between plumbing and porcelain commands?

IntermediateConceptGit internals: objects, refs and the index
Answer

Porcelain commands (commit, merge, rebase, status) are the user-facing interface with human-oriented output that can change between versions. Plumbing commands (hash-object, cat-file, update-ref, write-tree, rev-parse) are low level, stable and designed for scripts. In automation prefer plumbing or --porcelain output flags.

git status --porcelain=v2 --branch
All Git & GitHub questions Roadmap: Git & GitHub

More on Git internals: objects, refs and the index