How does git remove the version library control of specified files without letting others delete files after they are updated?

RT
after adding the file already in the version library to the .gitignore file, execute the following command:

git rm -r --cached .
git add .

then comment deletes the file!

Menu