Git commands
Submitted by
Dmitro
on
To remove files from the GIT repository based on .gitignore, without deleting them from the local file system:
git ls-files -i -c -X .gitignore | xargs git rm --cached
To remove files from the GIT repository based on .gitignore, without deleting them from the local file system:
git ls-files -i -c -X .gitignore | xargs git rm --cached