Understand Git and GitHub basics
Drill 20 practice questions focused entirely on Understand Git and GitHub basics for the GitHub GH-900 exam. Tap an answer for instant feedback and a full explanation — no sign-up, always free.
A developer is away from their computer but receives a notification that a teammate requested their review on a pull request. They want to read the discussion, view the proposed changes, add a comment, and approve the PR from their phone while commuting. Which GitHub tool is designed for this situation?
A new developer joins your team and needs to start contributing to an existing project hosted on GitHub. She wants a complete local copy of the repository, including its full commit history, so she can build and edit the code on her laptop. Which Git action accomplishes this?
A developer has edited three files to implement a small bug fix. They want to permanently record this specific set of changes in the project's history as a single, labeled snapshot that teammates can later reference. Which core Git concept describes this recorded snapshot?
A developer on your team is saving their work in a Git repository and asks what a commit actually captures. When they run 'git commit', what does Git record?
A developer on your team frequently works from trains and flights where internet connectivity is unreliable. While offline, they still need to review the full project history, create commits, and switch between branches. A colleague argues this is impossible without a live connection to the central server. Which characteristic of Git makes the developer's offline workflow possible?
A large company has grown to include five separate engineering divisions, each already running its own GitHub organization. Leadership now wants a single point of billing and the ability to enforce security policies (like mandatory two-factor authentication) consistently across all five organizations. Which GitHub offering best meets these needs?
A developer on your team is about to start work on an experimental new checkout feature. They are worried that their unfinished code could break the stable version of the application that other teammates are currently relying on. Which Git concept should they use to keep this new work isolated from the main line of development until it is ready?
A new developer on your team asks why the company needs both Git installed on their laptop and a GitHub account. Which statement best describes the distinct role each one plays?
A developer edits three source files and updates one configuration file while fixing a bug. After making the changes, they want to record all four edits together as a single logical unit in the project's history so the fix can be reviewed and, if needed, reverted as one piece. Which core Git capability makes this possible?
A new developer on your team says, "I installed GitHub on my laptop so now I can track file versions and commit my work locally." You want to correct their understanding. Which statement most accurately clarifies the relationship between Git and GitHub?
A new developer joins a company and is confused about how their work is organized on GitHub. They created a personal account, but their team's projects live in a shared space called "Contoso-Dev" that contains many repositories and controls who can access them. What kind of GitHub account is "Contoso-Dev"?
A designer on your team is comfortable with visual tools but has never used a terminal. They need to stage changes, commit, and push their work to a GitHub repository on their laptop without memorizing Git commands. Which GitHub tool best fits their needs?
A financial services company must keep all source code hosted on servers inside its own data center to comply with strict data-residency regulations, while still using GitHub's collaboration features. Which GitHub option best fits this requirement?
A small development team wants to adopt a lightweight, branch-based workflow. They release updates to their web application several times per day and need every change to be reviewed and validated before it reaches production. Which characteristic of the GitHub Flow makes it well suited to this team's needs?
A developer is starting work on a new feature using GitHub Flow. Their teammates have merged several pull requests into the main branch since the developer last pulled changes. Before creating their feature branch, what should the developer do to ensure their new branch starts from the most current, stable code?
Two developers on your team are working on separate features at the same time in the same repository. Following GitHub Flow, what is the recommended way for them to keep their work organized and independent before merging?
You are a developer on a team that follows the GitHub Flow. You have just been assigned an issue to add a new search feature to the company's web app. The main branch is protected and always deployable. According to GitHub Flow, what should you do first before writing any code for this feature?
A developer on your team has just finished coding a new login feature on a dedicated branch and has pushed all their commits to GitHub. Before this code becomes part of the main branch, the team wants teammates to review the changes and discuss them. According to the GitHub Flow, what should the developer do next?
A small startup team is adopting a formal collaboration workflow for the first time. They want a simple, branch-based process that supports continuous deployment and quick iteration, without the overhead of long-lived release branches or complex versioning stages. Which workflow best matches these goals?
You opened a pull request to merge your 'add-search-filter' branch into main. During review, a teammate leaves comments requesting two changes to your code before they will approve it. Following the GitHub Flow, what is the appropriate next step?
More GH-900 practice
Keep going with the other GitHub Foundations (GH-900) domains, or take a full timed mock exam.
← Back to GH-900 overview