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?

  1. git commit
  2. git push
  3. git status
  4. 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

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