Skip to content

Git Basics Quiz

Back to Quiz Home

Welcome! 🚀 Test your fundamental Git knowledge with this quick quiz. Perfect for beginners starting their version control journey.

Instructions:

  • Select the best answer for each question.
  • Your score will be shown at the end.
  • Aim for 100% to prove you are ready for the next level!
#

Which command initializes a new Git repository?

#

Which command adds files to the staging area?

#

Which command creates a new branch?

#

Which command downloads a repository from a remote source?

#

Which command shows the status of changes?

#

Which command records changes to the repository?

#

How do you configure your global username in Git?

#

Which command sends your local commits to a remote repository?

#

Which file is used to specify files that Git should ignore?

#

Which command lists all your commits?

#

How do you check the version of Git installed on your machine?

#

Which command displays help information about Git commands?

#

Which area holds changes before they are committed?

#

Which command lists all configured remote repositories?

#

Which directory contains the metadata and object database for your repository?

#

What does HEAD usually refer to?

#

Which command removes a file from the repository?

#

Which command renames a file (or moves it)?

#

Which flag adds all modified (tracked) files to the staging area during commit?

#

How do you create a tag for a specific commit?

Quiz Progress

0 / 0 questions answered (0%)

0 correct


📚 Study Guides


📬 Weekly DevOps, Cloud & Gen AI quizzes & guides