
GitLabCertified Fundamentals Associate
Domain 2Objective 1
Use Core Git Commands Including Checkout, Commit, Push, and Merge GITLAB-CERTIFIED-GIT-ASSOCIATE Practice Questions (Page 4)
Part of the Git and Version Control Workflows domain, which makes up ~16% of our current practice bank.
24questions here
5free pages
4concepts
Questions 16–20
- 16
A developer has committed changes locally but the remote `main` branch has advanced with new commits from a teammate. The developer wants to push their commit without creating a merge commit. What should they do?
Select an answer first - 17
A developer has resolved merge conflicts in `app.js` and wants to complete the merge. They have already staged the resolved file. What should they do next?
Select an answer first - 18
A developer has uncommitted changes in the working directory and wants to switch to another branch to do a quick review. They do not want to commit these changes yet. What is the best approach?
Select an answer first - 19
Which command records staged changes in the local repository with the message 'Fix login bug'?
Select an answer first - 20
A developer accidentally modified a tracked configuration file in the working directory but has not staged or committed the change. They want to discard the modification and restore the file to its last committed state. Which command should they run?
Select an answer first
Finished these 5 questions?
Review the revealed explanations, or continue through the curriculum.
Free Basic Practice is a study aid with revealable answers — not a scored exam. Examers.io is independent and not affiliated with or endorsed by GitLab. “GITLAB-CERTIFIED-GIT-ASSOCIATE” is a trademark of its owner, used for identification only.