The Daily Shaarli

All links of one day in a single page.

January 8, 2019

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