Git, how to keep files with git rm –cached even after pull on other machines

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 ?)

Read more here: Git, how to keep files with git rm –cached even after pull on other machines

Leave a Reply

Your email address will not be published. Required fields are marked *