How can I delete files from the local (localhost) and remote (Bitbucket) repository, but save them on the production server after executing the git pull command?
I decided to reduce the size of the repository. I put the file in .gitignore, then I do
git rm --cached --force <FILE_NAME> git commit -ma 'COMMIT_NAME' git push I go to the production-server, I do
git pull and the files are deleted there too.
How to avoid it?