Instrucciones
Archivo .gitignore para dejar impedir que se suban partes innecesarias en cualquier proyecto drupal 8 o superior
Código
# These are some examples of commonly ignored file patterns. # You should customize this list as applicable to your project. # Learn more about .gitignore: # https://www.atlassian.com/git/tutorials/saving-changes/gitignore # Node artifact files node_modules/ dist/ # Compiled Java class files *.class # Compiled Python bytecode *.py[cod] # Log files *.log # Package files *.jar # Maven target/ dist/ # JetBrains IDE .idea/ # Unit test reports TEST*.xml # Generated by MacOS .DS_Store # Generated by Windows Thumbs.db # Applications *.app *.exe *.war # Large media files *.mp4 *.tiff *.avi *.flv *.mov *.wmv # Ignore directories generated by Composer /drush/contrib/ /vendor/ /web/core/ /web/modules/contrib/ /web/themes/contrib/ /web/profiles/contrib/ /web/libraries/ # Ignore sensitive information /web/sites/*/settings.php /web/sites/*/settings.local.php # Ignore Drupal's file directory /web/sites/*/files/php/* /web/sites/*/files/js /web/sites/*/files/css # Ignore SimpleTest multi-site environment /web/sites/simpletest # Ignore files generated by common IDEs /.idea/ /.vscode/ /.lando/ /.lando.yml # Ignore .env files as they are personal /.env © 2021 GitHub, Inc.