Developing Applications and Automating Workflows Using Cisco Platforms (DEVASC) — Question 183
A file that already exists in a local repository is updated. Which command must be executed to ensure that the changes in the file are included in the next Git commit?
Answer options
- A. git update
- B. git merge
- C. git add
- D. git rebase
Correct answer: C
Explanation
The correct command to stage changes in a file for the next commit is 'git add'. The other options do not serve this purpose: 'git update' is not a valid Git command, 'git merge' is used to combine branches, and 'git rebase' is used to integrate changes from one branch into another.