GIT Commands -> PORCELAIN & PLUMBING
Did you know that git commands split into porcelain(used usally by the dev) and plumbing(used by git itself under the hood) commands. E.g git add, git commit, git log those are all PORCELAIN commands. E.g of a PLUMBING command is git cat-file -p <hash>, this command shows:
  1. tree(git's way of storing a directory or blob(git's way of showing a file)
  2. parent
  3. author
  4. committer
Git doesn't store diffs, it stores full snapshots of every file on each commit. It's smart enough to deduplicate unchanged files, so identical content across commits only gets stored once. Verified it myself with git cat-file, same file, same hash, across commits.
0
1 comment
Ahmed Awji
1
GIT Commands -> PORCELAIN & PLUMBING
Amigoscode
skool.com/amigoscode
A free learning community led by Nelson Djalo. Master Programming & AI, get updates, and grow in a fast-moving industry.
Leaderboard (30-day)
Powered by