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

git add .
git add -u
git add -A
none of the mentioned

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.