GitHub Foundations · GH-900 · Skills outline of January 2026 · Official skills outline · Original practice content

Free GH-900 practice questions: Understand Git and GitHub basics

Reviewed by the FlashGenius certification content team · Last updated: December 5, 2026 · Aligned to the published GH-900 skills outline and weights

The Understand Git and GitHub basics domain is 25-30% of the GH-900 exam and covers version control, Git versus GitHub, commits and branches, accounts and organizations, GitHub Flow, Markdown, and GitHub Desktop and Mobile. Review each answer and explanation as you practice.

GH-900 has 60 scored multiple-choice questions (plus about 10-15 unscored ones) in 100 minutes, costs $99 USD, needs a scaled 700 to pass, and the certification does not expire.

Take the 10-question GH-900 quick-start test · Create a free account

What Understand Git and GitHub basics covers on the GH-900 exam

This domain is 25-30% of the GH-900 exam (about 15 questions in a 60-question mock). The official skills outline includes:

How to study Understand Git and GitHub basics

GH-900 Understand Git and GitHub basics sample questions with answers

Understand Git and GitHub basics

Sample question 1

A small marketing team emails copies of a shared web page file back and forth. Nobody can tell which copy is current or who changed a headline last week. Which benefit of version control most directly solves this?

  1. A shared folder that always holds the latest copy of each file
  2. A recorded history of every change, showing who made it and when
  3. File locking so that one person at a time can open each file
  4. Nightly backups that can restore the files from the previous day
Show correct answer and explanation

Correct answer: B. A recorded history of every change, showing who made it and when

B is correct because version control keeps one history of the project in which each change is recorded with its author and time, so the team can see the current version and who changed the headline. A is incorrect because a shared folder shows the newest file but keeps no record of who changed what or when. C is incorrect because locking only stops people editing at the same time; it does not show which version is current or who made a change. D is incorrect because backups capture the files at set times and do not record each individual change or its author. Skills measured: Understand Git and GitHub basics > Version control fundamentals.

Understand Git and GitHub basics

Sample question 2

A developer deletes a function, commits the change and a week later learns the function was still needed. The project uses Git. What is the simplest way to get the function back?

  1. Use the code editor's undo history from the previous week
  2. Recover the earlier version of the file from the project history
  3. Rewrite the function from memory, since commits replace old versions
  4. Ask GitHub support to restore the file from their server backups
Show correct answer and explanation

Correct answer: B. Recover the earlier version of the file from the project history

B is correct because version control lets any earlier version of the project be recovered, so the function can be restored from a commit made before it was deleted. A is incorrect because an editor's undo history is not a reliable record across days and sessions, while the commit history is kept permanently. C is incorrect because a commit adds a new snapshot to the history and does not overwrite the earlier ones. D is incorrect because the team's own commit history already holds the earlier version, so no support request is needed. Skills measured: Understand Git and GitHub basics > Version control fundamentals.

Understand Git and GitHub basics

Sample question 3

Two developers at a logistics firm must change the same configuration file this week for two unrelated features. They use Git. How does version control let them work at the same time?

  1. Git keeps whichever version was saved last and discards the other one
  2. They work on separate branches and Git merges them, flagging conflicting lines
  3. Git locks the file so the second developer waits for the first to finish
  4. Each developer emails a copy of the file to the other before committing
Show correct answer and explanation

Correct answer: B. They work on separate branches and Git merges them, flagging conflicting lines

B is correct because branches keep each developer's work apart, and merging combines the two lines of work while surfacing any lines both people changed so someone can resolve them. A is incorrect because Git keeps both lines of work in its history and asks for a decision when the same lines conflict. C is incorrect because Git does not lock files; both people can edit the same file in parallel on their own branches. D is incorrect because exchanging copies by email is the manual process version control replaces, and it keeps no shared history. Skills measured: Understand Git and GitHub basics > Version control fundamentals.

Understand Git and GitHub basics

Sample question 4

A school IT coordinator is deciding whether to put lesson materials under version control. Which statement about the benefits of version control is true?

  1. Viewing the project history shows who changed what and when, and the commit messages can explain why.
  2. A single person working alone gains little from version control, because there is nobody to coordinate with.
  3. Version control is designed for program code, so documents and configuration files cannot be tracked.
  4. Version control keeps the latest version of each file, so older versions must be kept in separate backups.
Show correct answer and explanation

Correct answer: A. Viewing the project history shows who changed what and when, and the commit messages can explain why.

A is correct because each commit records its author and time, and its message describes the change, so the history answers who, what, when and why. B is incorrect because a solo user still benefits from recovering earlier versions and seeing why past changes were made. C is incorrect because Git tracks changes to any files in the project, including documentation and configuration. D is incorrect because version control keeps every committed version, and any earlier version can be recovered at any time. Skills measured: Understand Git and GitHub basics > Version control fundamentals.

Understand Git and GitHub basics

Sample question 5

Because Git is a distributed version control system, every developer who clones a repository has ___.

  1. a complete copy of the project, including its full history
  2. read-only access until the repository owner grants write access
  3. the files from the latest commit, without the earlier history
  4. a link to the central server's files but no local history
Show correct answer and explanation

Correct answer: A. a complete copy of the project, including its full history

A is correct because in a distributed system each developer has a full local copy of the project and its entire history. B is incorrect because a local clone is fully usable on the developer's machine; write access matters only for pushing to the remote. C is incorrect because cloning copies every version of every file, not just the latest snapshot. D is incorrect because that describes a centralized model; a Git clone holds the whole history locally. Skills measured: Understand Git and GitHub basics > Version control fundamentals.

Understand Git and GitHub basics

Sample question 6

A field engineer is on a long flight with no internet connection and wants to keep saving her progress on a Git project. What can she do?

  1. Nothing, because each commit must be sent to GitHub as it is made
  2. Nothing, because Git checks every commit against the server first
  3. Commit locally, but the commits are lost unless pushed within a day
  4. Commit locally during the flight and push the commits once back online
Show correct answer and explanation

Correct answer: D. Commit locally during the flight and push the commits once back online

D is correct because Git records commits in the local repository without a server connection, and pushing later sends them to the remote. A is incorrect because commits are recorded locally first; sending them to GitHub is a separate push step. B is incorrect because Git does not need a constant connection to a central repository to record commits. C is incorrect because local commits stay in the repository's history until she chooses to push them, with no time limit. Skills measured: Understand Git and GitHub basics > Version control fundamentals.

Understand Git and GitHub basics

Sample question 7

An auditor asks a payments team why a timeout value in a configuration file was changed eight months ago. The team uses Git. Where is the best place to find the answer?

  1. The repository README, which lists the configuration settings
  2. The current version of the file, which shows the latest timeout value
  3. The commit that changed the value, with its author, date and message
  4. The branch list, which shows every branch that touched the file
Show correct answer and explanation

Correct answer: C. The commit that changed the value, with its author, date and message

C is correct because each commit records who made the change, when, and a message describing it, which is the record of why the value changed. A is incorrect because a README describes the project in general and does not record the history or reason for each change. B is incorrect because the current file shows only today's value, not when or why it changed. D is incorrect because a branch list names lines of development; it does not explain an individual change. Skills measured: Understand Git and GitHub basics > Version control fundamentals.

Understand Git and GitHub basics

Sample question 8

An architecture team is comparing a distributed version control system such as Git with an older centralized system. Which statement about the distributed model is true?

  1. Each clone holds the files a developer has checked out, so the history is fetched from the server whenever it is viewed.
  2. In a distributed system, developers cannot share changes until a server administrator approves each change.
  3. Each clone holds the full project history, so most work, including commits, can be done without a server connection.
  4. A distributed system needs one central server to record each commit before other developers can see it.
Show correct answer and explanation

Correct answer: C. Each clone holds the full project history, so most work, including commits, can be done without a server connection.

C is correct because in a distributed system every developer has a complete copy of the project and its history, so committing and viewing history do not need a central server. A is incorrect because a Git clone already contains the entire history locally. B is incorrect because developers share changes by pushing and pulling; no administrator approval is built into Git itself. D is incorrect because commits are recorded locally; a shared remote is used to exchange them but is not needed to create them. Skills measured: Understand Git and GitHub basics > Version control fundamentals.

Understand Git and GitHub basics

Sample question 9

A team wants to try a risky redesign of its booking page without disturbing the working version customers use. Version control lets them do this by ___.

  1. creating a branch, so the redesign stays apart from the default branch until merged
  2. copying the whole repository into a new folder and renaming it for the redesign
  3. saving the redesign in the same commit as the working version, marked as a draft
  4. turning off commits on the default branch until the redesign has been finished
Show correct answer and explanation

Correct answer: A. creating a branch, so the redesign stays apart from the default branch until merged

A is correct because a branch is a parallel line of development, so changes made on it do not affect the default branch until the branch is merged. B is incorrect because copying folders loses the shared history and makes it hard to combine the work later. C is incorrect because a commit has no draft flag, and mixing both versions in one commit changes the working version too. D is incorrect because blocking commits would stop all other work instead of isolating the redesign. Skills measured: Understand Git and GitHub basics > Version control fundamentals.

Understand Git and GitHub basics

Sample question 10

A team lead says, "Our shared drive is backed up every night, so we do not need version control." Which important gap remains if the team relies on the nightly backups alone?

  1. Backups copy the files, but the copies cannot be kept on a separate server
  2. Backups store files in a format that ordinary text editors cannot open
  3. Backups cannot be restored once they are more than a week or two old
  4. Backups save snapshots on a schedule, not each change with its author and reason
Show correct answer and explanation

Correct answer: D. Backups save snapshots on a schedule, not each change with its author and reason

D is correct because version control records every change as it is committed, with who made it and a message explaining it, while a nightly backup captures only the state at one moment. A is incorrect because backups are commonly stored on separate servers; that does not give them a change history. B is incorrect because backup format is not the problem; restored files open normally but still lack a record of each change. C is incorrect because backup retention varies by system; the real gap is the missing per-change history, not the age of backups. Skills measured: Understand Git and GitHub basics > Version control fundamentals.

Keep practicing

GH-900 practice test hub · Mixed quick start · GH-300 GitHub Copilot practice test · AI-901 Azure AI Fundamentals practice test · AZ-900 Azure Fundamentals practice test

FlashGenius is an independent study resource and is not affiliated with or endorsed by GitHub or Microsoft. GitHub is a trademark of GitHub, Inc. 300 original practice questions.