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
More on Git internals: objects, refs and the index
What are the four object types in Git's object database?BeginnerIs Git a snapshot system or a diff system?BeginnerWhat is the SHA-1 (or SHA-256) hash of an object and how is it computed?BeginnerWhere does Git store objects on disk, and what are loose objects versus packfiles?IntermediateWhat exactly is a branch, and what does creating one cost?IntermediateWhat is HEAD?Beginner