XK0-005 · Question #674
A technician just fixed a few issues in some code and is ready to deploy the code into production. Which of the following steps should the technician take next?
The correct answer is C. Create a git pull request to merge into main. In a proper Git workflow, a developer works on a feature or fix branch and then opens a pull request (PR) to merge those changes into the main branch. This allows for code review, automated CI checks, and controlled merging before production deployment. Creating a new branch…
Question
A technician just fixed a few issues in some code and is ready to deploy the code into production. Which of the following steps should the technician take next?
Options
- ACreate a new branch using git checkout.
- BPerform a git clone to pull main down.
- CCreate a git pull request to merge into main.
- DPerform a git pull to update the local copy of the code.
How the community answered
(55 responses)- A4% (2)
- B15% (8)
- C75% (41)
- D7% (4)
Explanation
In a proper Git workflow, a developer works on a feature or fix branch and then opens a pull request (PR) to merge those changes into the main branch. This allows for code review, automated CI checks, and controlled merging before production deployment. Creating a new branch (A) would be done at the start of work, not the end. 'git clone' (B) copies a remote repository and is not part of the deployment step. 'git pull' (D) updates the local branch from the remote but does not initiate the merge-to-production process.
Topics
Community Discussion
No community discussion yet for this question.