Git Interview Questions
5 questions
What's the actual difference between git fetch and git pull, and why do some teams recommend always fetching first?
BeginnerGit5 min
Two engineers are working on the same long-lived feature branch. One wants to rebase onto main daily, the other insists on merging main in. Who's right, and how do you decide?
BeginnerGit8 min
What's the actual difference between git merge and git rebase in terms of what happens to the commit graph, not just the end result you see?
BeginnerGit6 min
A teammate's work was lost after a force-push overwrote their commits on a shared branch. How would you recover it?
IntermediateGit7 min
When would you choose squash-merge over a regular merge commit for landing a pull request into main?
BeginnerGit6 min