Free GH-900 sample questions

Real questions from the GitHub Foundations practice bank, with the correct answer and an explanation for each one. No junk, no filler.

Try them in the simulator Same questions, with study, timed and flashcard modes.

Showing 8 of 17 free sample questions.

Question 1Choose one

A developer attempts to push local commits to a remote repository but receives a 'non-fast-forward' error. This indicates that the remote branch contains commits that are not present locally. What is the safest command to resolve this situation without losing history, assuming the developer wants to incorporate the remote changes before pushing?

Question 2Choose one

You are investigating a bug in a specific file and need to identify exactly which commit introduced a specific line of code and who the author was. Which GitHub interface feature provides this line-by-line revision history?

Question 3Choose one

A user needs to authenticate Git operations with GitHub using HTTPS but has Two-Factor Authentication (2FA) enabled on their account. What credential must they use in place of their account password when prompted by the command line?

Question 4Choose one

You are working on a feature branch and want to incorporate the latest changes from the `main` branch into your work to ensure compatibility. You want to maintain a linear history without creating an extra merge commit. Which command should you use?

Question 5Choose one

Which of the following files is ESSENTIAL for excluding specific local files, such as build artifacts or environment secrets, from being tracked by Git?

Question 6Choose 2

Select TWO valid reasons for 'forking' a repository instead of 'cloning' it in the GitHub ecosystem. (Select TWO)

Question 7Choose one

You want to create a rich-text document for your repository's landing page that includes headers, links, and code blocks. What file format should you use for the README file to ensure it renders correctly on GitHub?

Question 8Choose one

A team member has left the organization. You need to ensure they can no longer access the private repositories they cloned to their personal laptop. Which statement accurately reflects the distributed nature of Git in this security scenario?

9 more free samples are waiting

Create a free account to unlock the whole GH-900 sample bank, or get full access to all 250 practice questions in the simulator.

Create account