Which git practice lets you try a new feature without breaking the main code?
- Exam domain
- Software and Environment Management6% of the exam
- Difficulty
- Easy
- In this mock
- 3 questions on this domainPractise this domain
Why the exam asks this
Software and Environment Management (6% of the exam)
Objective in the exam guide: Understanding the basics of version control using git
Basic git is named.
Why D is the answer
Create a branch, commit there, then merge after review
Branches isolate changes; commits record them; merging after review brings working changes into main.
Remember: Work on branches and merge after review.
How it works
Version control with git tracks changes and supports collaboration through branches and merges.
In detail
- Branch, commit, review, merge.
Every option, checked
Knowing why each wrong option fails is how you rule it out on exam day.
A. Copy the project folder and rename itWrongMost tempting
Folder copies lose history.
Why it tempts: Copies feel safe.
B. Avoid committing until the project endsWrong
Rare commits lose work.
C. Edit files directly on the main branch and push straight away without reviewWrong
Direct edits risk breaking main.
D. Create a branch, commit there, then merge after reviewRight
Work on branches and merge after review.
Use case
An illustrative scenario, not a real incident.
Illustrative: a new feature branch is reviewed and merged without disrupting colleagues.
See it in different ways
flowchart LR S0["Branch"] --> S1["Commit"] --> S2["Push"] --> S3["Review"] --> S4["Merge"]
How to read this chart
- Read it in order: Branch, then Commit, then Push, then Review, then Merge.
mindmap
root(("Git"))
n1["Track"]
n2["Commit"]
n3["Isolate"]
n4["Branch"]
n5["Share"]
n6["Push"]
n7["Pull"]
n8["Combine"]
n9["Merge"]How to read this chart
- The centre is "Git".
- "Track" covers "Commit".
- "Isolate" covers "Branch".
- "Share" covers "Push", "Pull".
- "Combine" covers "Merge".