Faruk Hasan

Faruk Hasan

Software QA Engineer | Automation & AI-Driven Testing Specialist

Git & GitHub Mastery Quiz

Test your version control knowledge with 16 comprehensive questions

About This Quiz

🎯 Purpose: Master the fundamentals of Git and GitHub version control systems

📊 Format: 16 questions including multiple choice, true/false, short answer, and scenario-based problems

⏱️ Time: Approximately 15-20 minutes

🎓 Level: Beginner to Intermediate

💡 Topics Covered: Git commands, repositories, commits, branches, GitHub workflows, and collaboration

1. What is Git?

2. Which command initializes a new Git repository?

3. Which command shows the current status of your Git repository?

4. What does git add do?

5. What is the purpose of git commit -m "message"?

6. git clone creates a copy of a remote repository on your local machine.

7. You can make commits without staging files using git add.

8. GitHub is a web-based interface for managing Git repositories.

9. A Git branch lets you work on different versions of your project at the same time.

10. git pull uploads changes from your local computer to GitHub.

11. What command do you use to upload your local commits to GitHub?

12. What is the default name of the main branch in Git?

13. What is a "commit message"? Why is it important?

14. Name the file that Git uses to ignore certain files from tracking.

15. What is a pull request used for on GitHub?

16. Scenario: You fork a repo, clone it, create a feature branch, make changes, push it, and create a pull request. Answer the following:

a. What command do you use to fork a repository?

b. What command clones the forked repo?

c. How do you create and switch to a new branch?

d. What two commands do you run before pushing the changes?

e. What command pushes your branch to GitHub?

f. Where is the pull request being merged?

g. Why is this workflow useful when contributing to public repositories?