Diff tools highlight what changed between text versions for review and merging.
Diff formats
- Unified diff: +/- lines with context (Git default).
- Context diff: Before/after sections with ! markers.
- Side-by-side: Two-column comparison.
- Inline/word diff: Character-level changes within lines.
Common diff notation
- Lines starting with - (removed).
- Lines starting with + (added).
- Lines starting with @ (chunk headers).
- Unchanged lines for context.
Use cases
- Code review in pull requests.
- Document version comparison.
- Configuration file changes.
- Merge conflict resolution.
- Backup verification.
Tools
- Git diff, diff command (Unix).
- IDE built-in comparison.
- Online diff checkers.
- Merge tools (Beyond Compare, Meld).
Advanced features
- Ignore whitespace changes.
- Word/character-level granularity.
- Three-way merge (base, theirs, yours).
- Syntax-aware diffing (for code).
Related Articles
View all articlesWeb Security Compared: Cloudflare vs AWS Shield/WAF vs Azure DDoS/WAF vs Google Cloud Armor
A deep technical comparison of web security platforms — DDoS protection, WAF, bot management, and API security across Cloudflare, AWS, Azure, and Google Cloud. Architecture, pricing, and when each approach wins.
Read article →Containers & Compute Compared: Cloudflare Workers/Containers vs AWS ECS/EKS vs Azure AKS vs Google GKE
A deep technical comparison of container and compute platforms — Cloudflare's edge compute model vs AWS ECS/EKS/Fargate, Azure AKS/Container Apps, and Google GKE/Cloud Run. Architecture, orchestration, pricing, and when containers vs edge isolates vs serverless containers win.
Read article →Gemini CLI Free Tier: What You Get and When to Upgrade
A complete guide to Gemini CLI free tier - understanding the limits, maximizing free usage, and knowing when to upgrade to Vertex AI for professional use.
Read article →Context Windows Explained: Why Size Matters for AI Coding
Understand context windows in AI coding tools - what they are, how they affect your workflow, and why Gemini 1M tokens is not always better than Claude 200K for coding tasks.
Read article →Explore More Development
View all termsAPI (Application Programming Interface)
A set of rules and protocols that allows different software applications to communicate and exchange data.
Read more →Cron Expression
A time-based job scheduling syntax using five or six fields to specify when tasks should run.
Read more →DevOps
A set of practices combining software development (Dev) and IT operations (Ops) to shorten development cycles and deliver high-quality software continuously.
Read more →Diff Algorithm
A computational method for comparing two sets of data and identifying differences between them.
Read more →GitOps
An operational framework that uses Git repositories as the single source of truth for declarative infrastructure and application configurations.
Read more →JSON (JavaScript Object Notation)
A lightweight data interchange format using human-readable text to represent structured data.
Read more →