How to Ignore Files or Folders When Pulling with Git
Sometimes when pulling files from a git repository, you need to ignore updates for certain configuration files, preventing those file types from being updated locally or on the server. Here we use the .env.serve file as an example (the file must exist in the git repository): git rm -r –cached .env.serve …