← All GitHub Professional Certificate Flashcard Decks

Version Control and Git Fundamentals Flashcards

6 cards from real GitHub Professional Certificate practice questions. Tap to flip, then mark Knew It or Still Learning — missed cards come back until you master them.

Read the first 6 Version Control and Git Fundamentals flashcards as text
  1. What is the primary purpose of using Git?

    Answer: Version control and collaboration

    Git is a distributed version control system (DVCS) designed to track changes in source code and other files over time. Its primary purpose is to enable multiple developers to collaborate on a project efficiently, managing different versions of the codebase and preventing conflicts. This ensures a complete history of all modifications and facilitates teamwork.

  2. Which Git command is used to check the current status of your working directory and staging area?

    Answer: git status

    The `git status` command provides a summary of the current state of your working directory and staging area. It shows which files have been modified, which are staged for the next commit, and which untracked files are present. This command is essential for understanding what changes are pending and preparing for your next commit.

  3. Which file in a Git repository is used to avoid tracking specific files?

    Answer: .gitignore

    The `.gitignore` file is used to specify intentionally untracked files that Git should ignore. This prevents temporary files, build artifacts, personal configurations, or sensitive data from being accidentally committed to the repository. By listing these files, you keep your repository clean and focused on essential project files.

  4. What does the `git commit` command do?

    Answer: Records changes in the repository

    The `git commit` command takes the changes that have been staged (added to the staging area using `git add`) and permanently records them as a new snapshot in the repository's history. Each commit includes a unique ID and a commit message describing the changes. This creates a point to which you can revert if needed, preserving the project's evolution.

  5. Which command initializes a new Git repository?

    Answer: git init

    The `git init` command creates a new, empty Git repository or reinitializes an existing one in the current directory. This command sets up the necessary Git internal data structures, including the `.git` directory. Once initialized, you can start tracking changes for your project within that directory.

  6. What is the function of a Git branch?

    Answer: Separate lines of development

    Git branches allow developers to diverge from the main line of development to work on new features, bug fixes, or experiments without affecting the stable codebase. Each branch represents an independent line of work, enabling parallel development. This separation helps manage different project versions and ensures stability of the main project.

How this page was made: written with AI tools and published by Nathan Beja, founder of Practice Test Geeks, who is responsible for its content. Exam facts are checked against the official sources listed below. Not reviewed by a subject-matter expert. Editorial policy

Sources & references

Exam facts on this page (fees, format, dates, passing scores) are checked against these official sources; the date is our last check. Editorial policy

  1. docs.github.com — Test delivery, eligibility · verified Oct 2026
  2. learn.microsoft.com — Fees, renewal, time limit, score validity, passing score · verified Oct 2026