Patch
ELI5 — The Vibe Check
A patch is a small update that fixes something specific without replacing the whole program. It is a targeted repair, like putting a band-aid on a specific cut rather than replacing the patient. Security patches fix vulnerabilities; bug patches fix broken behavior.
Real Talk
A patch is an incremental software update that modifies specific parts of a codebase to fix bugs, close security vulnerabilities, or make minor improvements. In version semantics (semver), patches increment the third number (1.2.X). In git, a patch can also refer to a diff file representing a set of changes that can be applied with git apply.
Show Me The Code
# Semantic versioning - patch is the last number:
# 1.2.3 → 1.2.4 (patch: bug fix)
# 1.2.3 → 1.3.0 (minor: new feature)
# 1.2.3 → 2.0.0 (major: breaking change)
# Generate a patch file from git:
git diff HEAD~1 HEAD > my-fix.patch
# Apply a patch:
git apply my-fix.patch
When You'll Hear This
"Apply the security patch before Monday." / "It's a patch release — just bump the patch version."
Related Terms
Bug
A bug is anything in your code that makes it behave wrong.
Deploy
Deploying is taking your code from your computer and making it live on the internet for real users. Before: only you can see it.
Git
Git is like a magical save system for your code. Every time you save (commit), it remembers exactly what changed.
Hotfix
A hotfix is an emergency patch you ship immediately to fix a critical bug in production — no waiting for the next planned release.
Semver (Semver)
Semver is the numbering system for software versions: MAJOR.MINOR.PATCH.