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.
You have initialized a new local project and created several files. You want to save the current state of your project to your local Git history. Which sequence of commands represents the correct workflow to permanently record these changes in the local repository?
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?
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?
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?
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?
Which of the following files is ESSENTIAL for excluding specific local files, such as build artifacts or environment secrets, from being tracked by Git?
Select TWO valid reasons for 'forking' a repository instead of 'cloning' it in the GitHub ecosystem. (Select TWO)
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.