An “ignored” file in git is one that:

Managing Files and the Index >>> An ignored file in git is one that: >>> Using Git for Distributed Development

 

It must be in a .gitignore file, either by complete name or wildcard

============================

It is removed from the working tree and the index

============================

It is removed only from the working tree, the repository is unchanged

============================

This is the correct command

============================