What is the command to list all untracked files in Git?
a)
git statusb)
git ls-files --othersc)
git show untrackedd)
git log --untrackedAnswer:
b)
git ls-files --othersExplanation:
The command git ls-files --others lists all untracked files in your working directory. These are files that have not been added to the index (staging area) and are not being tracked by Git.
Alternatively, you can use git status to see untracked files along with other status information.
Knowing which files are untracked is important when deciding which files to include in your repository.