
GitLabCertified Fundamentals Associate
Domain 2Objective 1
Use Core Git Commands Including Checkout, Commit, Push, and Merge GITLAB-CERTIFIED-GIT-ASSOCIATE Practice Questions (Page 2)
Part of the Git and Version Control Workflows domain, which makes up ~16% of our current practice bank.
24questions here
5free pages
4concepts
Questions 6–10
- 6
A developer has committed changes on a local branch `feature/new-ui` and wants to upload this branch to the remote repository for the first time. Which command should they run?
Select an answer first - 7
A developer has committed a change to `main` locally and wants to push it. However, the remote `main` has advanced with a commit from a teammate. The developer wants to integrate the teammate's change and push their own commit, but they want to avoid creating a merge commit. What is the best course of action?
Select an answer first - 8
A developer is on the `feature` branch and has staged several files. They realize they forgot to include a change in `utils.py` that is currently unstaged. They want to include this change in the next commit without staging other unrelated files. What should they do?
Select an answer first - 9
A developer has a local branch `feature/x` and wants to integrate the latest changes from the remote `main` into it. They are currently on `feature/x`. Which command should they run?
Select an answer first - 10
A developer has staged a file `app.js` but then realized they made a typo in it. They want to unstage the file so they can fix the typo and then re-stage it. 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.