---
title: "Git: Version Control Fundamentals"
lang: "en"
author: "Mohammad Abu Mattar"
canonical: https://mkabumattar.com/post/git-version-control-fundamentals-quiz
---

[Home](/)›[Quizzes](/quizzes)›[All Categories](/quizzes/categories)›[Git](/quizzes/categories/git)

Quizzes

[Git](/quizzes/categories/git)[Version Control](/quizzes/categories/version-control)[Software Development](/quizzes/categories/software-development)[DevOps](/quizzes/categories/devops)

# Git: Version Control Fundamentals

[Mohammad Abu Mattar](/authors/mohammad-abu-mattar)20 QuestionsBeginnerPublished: 06 Feb 2026

[Markdown for AI(opens in a new tab)](/post/git-version-control-fundamentals-quiz/index.md "Open the plain-Markdown version of this page, for pasting into an AI tool")

Series

[Linux & System Administration](/series/linux--system-administration)4/4

[PreviousPowerShell: Windows Scripting Fundamentals](/quizzes/post/powershell-scripting-fundamentals-quiz)

All posts in this series (4)

Quizzes4

1.  [Linux: System Administration Fundamentals](/quizzes/post/linux-system-administration-fundamentals-quiz)
2.  [Bash: Shell Scripting Fundamentals](/quizzes/post/bash-shell-scripting-fundamentals-quiz)
3.  [PowerShell: Windows Scripting Fundamentals](/quizzes/post/powershell-scripting-fundamentals-quiz)
4.  [Git: Version Control FundamentalsYou are here](/quizzes/post/git-version-control-fundamentals-quiz)

## Git: Version Control Fundamentals

Up to 20 questions, shuffled on every run

Quiz Configuration

Enterto start

Welcome to the Git Basics Quiz! This quiz covers fundamental Git concepts, version control workflows, and collaborative development best practices. Each question is multiple-choice, and you’ll find hints to help you along the way. Good luck!

Answer key and explanations20 questions

The quiz above draws 20 questions at random from these 30, so a second attempt will not be the same run. Everything in the pool is listed here.

1.  What is the command to initialize a new Git repository in an existing directory?
    
    Answer\`git init\`
    
2.  What is the "Staging Area" (Index) in Git?
    
    AnswerA buffer for pending commits
    
3.  How do you move changes from the Working Directory to the Staging Area?
    
    Answer\`git add <file>\`
    
4.  What is the purpose of "git commit"?
    
    AnswerTo snapshot staged changes
    
5.  What does "git status" show?
    
    AnswerThe state of tracked files
    
6.  How do you create a new branch and switch to it immediately?
    
    Answer\`git checkout -b <name>\`
    
7.  What is "git clone" used for?
    
    AnswerTo copy a remote repository
    
8.  What is a "Merge Conflict"?
    
    AnswerA failure in automatic merging
    
9.  What does "git pull" do?
    
    AnswerFetches and merges data
    
10.  What is "The SHA" (Hash) in Git?
     
     AnswerA commit unique identifier
     
11.  What is the purpose of a ".gitignore" file?
     
     AnswerTo exclude untracked files
     
12.  What does "git log" do?
     
     AnswerLists the commit history
     
13.  What is "git merge"?
     
     AnswerIntegrating separate histories
     
14.  What is the "HEAD" in Git?
     
     AnswerA pointer to the active branch
     
15.  What does "git push" do?
     
     AnswerSends local commits to remote
     
16.  What is "git diff"?
     
     AnswerComparing tree and index
     
17.  What is a "Remote" in Git?
     
     AnswerA shared project repository
     
18.  What is the "Main" (or "Master") branch?
     
     AnswerThe stable production branch
     
19.  What is "git stash"?
     
     AnswerStoring uncommitted work
     
20.  What is a "Fast-forward" merge?
     
     AnswerA linear branch pointer update
     
21.  What does "git fetch" do?
     
     AnswerDownloads remote metadata
     
22.  How do you undo a commit by creating a NEW commit with opposite changes?
     
     Answer\`git revert <commit>\`
     
23.  What is "git rebase"?
     
     AnswerReapplying commits on a base
     
24.  What is a "Fork"?
     
     AnswerA server-side repository copy
     
25.  What is a "Pull Request" (or Merge Request)?
     
     AnswerA proposal for code integration
     
26.  What is the "Working Directory"?
     
     AnswerThe current checked-out files
     
27.  What does "git remote -v" show?
     
     Answer\`The fetch and push URLs\`
     
28.  What happens if you run "git checkout <filename>"?
     
     Answer\`The file reverts to HEAD state\`
     
29.  What is "git rm"?
     
     AnswerRemoving files from the index
     
30.  What is a "Cherry-pick"?
     
     AnswerApplying a specific commit
     

## Tags

[#Git](/quizzes/tags/git)[#Version Control](/quizzes/tags/version-control)[#Git Branches](/quizzes/tags/git-branches)[#Git Merge](/quizzes/tags/git-merge)[#Git Rebase](/quizzes/tags/git-rebase)[#GitHub](/quizzes/tags/github)[#Software Development](/quizzes/tags/software-development)[#DevOps](/quizzes/tags/devops)[#VCS](/quizzes/tags/vcs)

## Share

[Facebook](https://facebook.com/sharer/sharer.php?u=https%3A%2F%2Fmkabumattar.com%2Fquizzes%2Fpost%2Fgit-version-control-fundamentals-quiz "Share on Facebook")[Twitter](https://twitter.com/intent/tweet/?text=Git%3A%20Version%20Control%20Fundamentals&url=https%3A%2F%2Fmkabumattar.com%2Fquizzes%2Fpost%2Fgit-version-control-fundamentals-quiz "Share on Twitter")[LinkedIn](https://www.linkedin.com/shareArticle?mini=true&url=https%3A%2F%2Fmkabumattar.com%2Fquizzes%2Fpost%2Fgit-version-control-fundamentals-quiz&title=Git%3A%20Version%20Control%20Fundamentals&summary=Test%20your%20knowledge%20of%20Git%20fundamentals%20with%20a%20quiz%20covering%20commits%2C%20branches%2C%20merging%2C%20rebasing%2C%20remote%20repositories%2C%20staging%2C%20conflict%20resolution%2C%20and%20version%20control%20best%20practices.&source=https://mkabumattar.com "Share on LinkedIn")[WhatsApp](https://wa.me/?text=Git%3A%20Version%20Control%20Fundamentals%20https%3A%2F%2Fmkabumattar.com%2Fquizzes%2Fpost%2Fgit-version-control-fundamentals-quiz "Share on WhatsApp")[Telegram](https://t.me/share/url?url=https%3A%2F%2Fmkabumattar.com%2Fquizzes%2Fpost%2Fgit-version-control-fundamentals-quiz&text=Git%3A%20Version%20Control%20Fundamentals "Share on Telegram")[Reddit](https://www.reddit.com/submit?url=https%3A%2F%2Fmkabumattar.com%2Fquizzes%2Fpost%2Fgit-version-control-fundamentals-quiz&title=Git%3A%20Version%20Control%20Fundamentals "Share on Reddit")[Hacker News](http://news.ycombinator.com/submitlink?u=https%3A%2F%2Fmkabumattar.com%2Fquizzes%2Fpost%2Fgit-version-control-fundamentals-quiz&t=Git%3A%20Version%20Control%20Fundamentals "Share on Hacker News")[Pinterest](https://pinterest.com/pin/create/button/?url=https%3A%2F%2Fmkabumattar.com%2Fquizzes%2Fpost%2Fgit-version-control-fundamentals-quiz&media=&description=Test%20your%20knowledge%20of%20Git%20fundamentals%20with%20a%20quiz%20covering%20commits%2C%20branches%2C%20merging%2C%20rebasing%2C%20remote%20repositories%2C%20staging%2C%20conflict%20resolution%2C%20and%20version%20control%20best%20practices. "Share on Pinterest")[Email](<mailto:?subject=Git%3A%20Version%20Control%20Fundamentals&body=Check out this article: https%3A%2F%2Fmkabumattar.com%2Fquizzes%2Fpost%2Fgit-version-control-fundamentals-quiz>)

## Comments

Was this useful?

## You might also enjoy

More posts on similar topics

[![Linux: System Administration Fundamentals](/_astro/hero.iaBV-jGL_Z26okHM.webp)](/quizzes/post/linux-system-administration-fundamentals-quiz)

## [Linux: System Administration Fundamentals](/quizzes/post/linux-system-administration-fundamentals-quiz)

-   [Mohammad Abu Mattar](/authors/mohammad-abu-mattar)
-   [Linux](/quizzes/categories/linux)
-   [Operating Systems](/quizzes/categories/operating-systems)
-   [System Administration](/quizzes/categories/system-administration)
-   [DevOps](/quizzes/categories/devops)

Welcome to the Linux Basics Quiz! This quiz covers fundamental Linux concepts, commands, and system administration best practices. Each question is multiple-choice, and you'll find hints to help you a

[#Linux](/quizzes/tags/linux)[#Linux Commands](/quizzes/tags/linux-commands)[#File System](/quizzes/tags/file-system)+6 tags

[read more](/quizzes/post/linux-system-administration-fundamentals-quiz)

[![PowerShell: Windows Scripting Fundamentals](/_astro/hero.BunyKCei_Z1q79bl.webp)](/quizzes/post/powershell-scripting-fundamentals-quiz)

## [PowerShell: Windows Scripting Fundamentals](/quizzes/post/powershell-scripting-fundamentals-quiz)

-   [Mohammad Abu Mattar](/authors/mohammad-abu-mattar)
-   [PowerShell](/quizzes/categories/powershell)
-   [Windows](/quizzes/categories/windows)
-   [System Administration](/quizzes/categories/system-administration)
-   [Automation](/quizzes/categories/automation)

Welcome to the PowerShell Basics Quiz! This quiz covers fundamental PowerShell concepts, cmdlets, and scripting best practices. Each question is multiple-choice, and you'll find hints to help you alon

[#PowerShell](/quizzes/tags/powershell)[#PowerShell Cmdlets](/quizzes/tags/powershell-cmdlets)[#PowerShell Scripting](/quizzes/tags/powershell-scripting)+6 tags

[read more](/quizzes/post/powershell-scripting-fundamentals-quiz)

[![Bash: Shell Scripting Fundamentals](/_astro/hero.MnDgxJ0F_Z2vuAcu.webp)](/quizzes/post/bash-shell-scripting-fundamentals-quiz)

## [Bash: Shell Scripting Fundamentals](/quizzes/post/bash-shell-scripting-fundamentals-quiz)

-   [Mohammad Abu Mattar](/authors/mohammad-abu-mattar)
-   [Bash](/quizzes/categories/bash)
-   [Shell Scripting](/quizzes/categories/shell-scripting)
-   [Linux](/quizzes/categories/linux)
-   [Automation](/quizzes/categories/automation)

Welcome to the Bash Basics Quiz! This quiz covers fundamental Bash scripting concepts, syntax, and best practices. Each question is multiple-choice, and you'll find hints to help you along the way. Go

[#Bash](/quizzes/tags/bash)[#Shell Scripting](/quizzes/tags/shell-scripting)[#Bash Variables](/quizzes/tags/bash-variables)+6 tags

[read more](/quizzes/post/bash-shell-scripting-fundamentals-quiz)

[![CI/CD: Pipeline Automation Essentials](/_astro/hero.PyhZu5TH_ZSTNHp.webp)](/quizzes/post/cicd-pipeline-essentials-quiz)

## [CI/CD: Pipeline Automation Essentials](/quizzes/post/cicd-pipeline-essentials-quiz)

-   [Mohammad Abu Mattar](/authors/mohammad-abu-mattar)
-   [CI/CD](/quizzes/categories/cicd)
-   [DevOps](/quizzes/categories/devops)
-   [Software Development](/quizzes/categories/software-development)
-   [Automation](/quizzes/categories/automation)

Welcome to the CI/CD Basics Quiz! This quiz covers fundamental continuous integration and continuous delivery concepts, pipeline automation, and modern DevOps best practices. Each question is multiple

[#CI/CD](/quizzes/tags/cicd)[#Continuous Integration](/quizzes/tags/continuous-integration)[#Continuous Deployment](/quizzes/tags/continuous-deployment)+6 tags

[read more](/quizzes/post/cicd-pipeline-essentials-quiz)

[![GitLab CI/CD: Pipeline Automation Fundamentals](/_astro/hero.VGnmfnNE_ZdelL7.webp)](/quizzes/post/gitlab-cicd-pipeline-quiz)

## [GitLab CI/CD: Pipeline Automation Fundamentals](/quizzes/post/gitlab-cicd-pipeline-quiz)

-   [Mohammad Abu Mattar](/authors/mohammad-abu-mattar)
-   [CI/CD](/quizzes/categories/cicd)
-   [DevOps](/quizzes/categories/devops)
-   [GitLab](/quizzes/categories/gitlab)
-   [Automation](/quizzes/categories/automation)

Welcome to the GitLab CI/CD Basics Quiz! This quiz covers the fundamentals of GitLab CI/CD, including pipelines, jobs, stages, triggers, and best practices. Test your knowledge and see how well you un

[#GitLab CI](/quizzes/tags/gitlab-ci)[#YAML](/quizzes/tags/yaml)[#DevOps](/quizzes/tags/devops)+2 tags

[read more](/quizzes/post/gitlab-cicd-pipeline-quiz)

[![HashiCorp Vault: Secrets Management Fundamentals](/_astro/hero.DShusAJ-_ZcwVhy.webp)](/quizzes/post/vault-secrets-management-quiz)

## [HashiCorp Vault: Secrets Management Fundamentals](/quizzes/post/vault-secrets-management-quiz)

-   [Mohammad Abu Mattar](/authors/mohammad-abu-mattar)
-   [Security](/quizzes/categories/security)
-   [DevOps](/quizzes/categories/devops)
-   [Secrets Management](/quizzes/categories/secrets-management)

Welcome to the HashiCorp Vault Basics Quiz! In modern DevOps, security cannot be an afterthought. Vault provides the "Source of Truth" for secrets, certificates, and encryption. This quiz will test yo

[#Vault](/quizzes/tags/vault)[#HashiCorp](/quizzes/tags/hashicorp)[#Security](/quizzes/tags/security)+2 tags

[read more](/quizzes/post/vault-secrets-management-quiz)

6 related posts
