Follow

git - How to remove files that are listed in the .gitignore but still on the repository? - Stack Overflow
stackoverflow.com/a/13541721/2

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

```bash
git ls-files -i --exclude-from=.gitignore | xargs git rm --cached
```
links.kalvn.net/?n1QGjw

Sign in to participate in the conversation
Mastodon

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.