Developing Applications and Automating Workflows Using Cisco Platforms (DEVASC) — Question 279

A developer completed the creation of a script using Git. Before delivering it to the customer, the developer wants to be sure about all untracked files, without losing any information. Which command gathers this information?

Answer options

Correct answer: A

Explanation

The command 'git clean –n' is used to show which untracked files would be removed without actually deleting them, making it the correct choice for the developer's needs. The other options, such as 'git rm –f' and 'git rm *', would remove files rather than simply listing untracked ones, and 'git clean –r' would remove directories as well, which is not what the developer is looking for.