I want to remove wordpress core files from a lot of git repositories but keep the files so it doesn’t break local
git rm --cached -r wp-includes/ wp-admin/ ......
Solves the problem, the question is how, on production server,
git pull the commit WITHOUT deleting physically the files so it doesn’t break the production ?
What the solution to this ? (commit both on production and locally, and since the commit will be the same, nothing will be physically ereased ?)