Mid
From PDF
Version Control
Git & GitHub
Forking vs. branching?
Short answer: Forking creates a copy of an entire repository (often on a remote server); branching creates a lightweight, isolated line of development within a single repository.
Example code
Forking creates a copy of an entire repository (often on a remote server); branching creates a lightweight, isolated line of development within a single repository.
Real-world example (ShopNest)
Feature work for “UPI payment” lives on feature/upi-payment. Open a PR to main; resolve conflicts before merge.
Say this in the interview
- Define — one clear sentence (the short answer above).
- Example — relate it to a project like ShopNest or your real work.
- Trade-off — when you would not use it.
Share this Q&A
Share preview image: https://www.toolliyo.com/images/toolliyo-logo.png