Here are some common Git-related questions you might be asked in a technical interview:
- What is the difference between
git mergeandgit rebase? - What is a detached HEAD?
- What is the difference between
git pullandgit fetch? - What is
git cherry-pick? - How would you resolve a merge conflict?
- What is the purpose of
.gitignore? - What is the difference between
git reset --soft,git reset --mixed, andgit reset --hard? - How do you squash multiple commits into one?