← All topics
Quiz: Git Workflow and Interview: questions with answers
10 questions, each with the answer and a short explanation.
Take the timed quiz + get a certificate →- Q1. What is the difference between Git and GitHub?
- Q2. What does HEAD refer to?
- Q3. Which command applies one specific commit from another branch?
- Q4. Which command helps find the commit that introduced a bug using binary search?
- Q5. Why do teams protect the main branch?
- Q6. In a typical team workflow, how do changes reach the protected main branch?
- Q7. What does a "squash merge" of a pull request do?
- Q8. Which command shows who last changed each line of a file?
- Q9. What is the difference between git fetch and git pull in one line?
- Q10. Why is Git called a distributed version control system?