Intermediate LevelGit & GitHub
How does git range-diff compare two iterations of a rebased branch?
❓ Interview Prompt: Explain git range-diff, comparing commit changes across rebased branch iterations, and code review verification.
git range-diff compares the commit changes between two versions of a rebased branch (e.g. feature-v1...feature-v2), helping reviewers inspect changes made during interactive rebase force-pushes.
Code Implementation Example
bash
git range-diff main...feature-branch@{1} main...feature-branch💡Comparing rebased branch iterations using git range-diff.
🎯 Interview Key Takeaway
Use git range-diff to inspect exact patch changes between two iterations of a rebased branch during code review.
#git range-diff#Rebase Review#Intermediate
Back to all Git & GitHub Questions→