Which of the following adds all new files to local repository?

[amp_mcq option1=”git add .” option2=”git add -u” option3=”git add -A” option4=”none of the mentioned” correct=”option1″]

The correct answer is: A. git add .

git add . adds all new files to the local repository.

git add -u updates the index with changes in all tracked files.

git add -A adds all changes to the index, including changes to untracked files.

none of the mentioned is incorrect because it does not include the correct answer.

Exit mobile version