Software Engineering · Question 19 · Easy
Which git command adds changes from the working directory to the staging area (index) so that they go into the next commit?
- git commit
- git push
- git status
- git add
Answer and explanation
Answer: D. git add
Explanation: git add stages changes, git commit records the staged snapshot, git push uploads commits to a remote, and git status only reports the state.
Previous: In Scrum, what is the fixed-length, time-boxed iteration in which the team… · Next: "The results page must load within 2 seconds for up to 10,000 concurrent…
Practise software engineering
Try a fresh set of software engineering questions with an explanation after every answer, free and without signing up: Software Engineering practice. Or sit a full placement mock test.
More software engineering questions
- Testing carried out by the developer organisation's own staff at the…
- In software engineering, what does SRS stand for?
- In Scrum, what is the fixed-length, time-boxed iteration in which the team…
- "The results page must load within 2 seconds for up to 10,000 concurrent…
- In software quality, which question does verification answer, as opposed to…
- What is the minimum number of test cases needed for 100% branch (decision)…
- Which type of coupling between modules is considered the worst (strongest)?
- You have uncommitted changes but must switch branches quickly to fix an urgent…
- A bad commit has already been pushed to a shared main branch that teammates…
- A Scrum team completed 30, 34 and 26 story points in its last three sprints…
More technical & programming practice
Cloud & DevOps · GenAI Basics · Pseudo-code · C Programming · Java · Python · Data Structures · Algorithms
LogicWiz Exams home · All practice topics · Placement mock tests · Daily 10 challenge