1.

Which of the following command updates tracking for files that are modified?(a) git add .(b) git add -u(c) git add -A(d) none of the mentionedThis question was addressed to me in a job interview.This intriguing question comes from CLI and Git Workflow topic in division Data Science Basics and Data Scientist Toolbox of Data Science

Answer»

The correct option is (b) GIT add -u

The explanation is: The git add COMMAND adds a CHANGE in the working directory to the staging area.



Discussion

No Comment Found

Related InterviewSolutions