git - How to remove files that are listed in the .gitignore but still on the repository? - Stack Overflow

Supprimer tous les fichiers qui sont dans le *.gitignore* du repository en une commande.

git ls-files -i --exclude-from=.gitignore | xargs git rm --cached

Sign in to participate in the conversation

Generalistic and moderated instance. All opinions are welcome, but hate speeches are prohibited. Users who don't respect rules will be silenced or suspended, depending on the violation severity.