Ruby on Rails Modello .gitignore
Rails log files, temporary storage (/tmp), asset caches, and credentials. Generato e unito in modo deterministico con i pattern ufficiali del repository GitHub per preservare il tuo progetto da cartelle di dipendenze, file compilati e variabili d'ambiente locali.
Generatore interattivo di stack
Apri nel generatore completoRails log files, temporary storage (/tmp), asset caches, and credentials
### Ruby on Rails ###*.rbccapybara-*.html.rspec/db/*.sqlite3/db/*.sqlite3-journal/db/*.sqlite3-[0-9]*/public/system/coverage//spec/tmp*.origrerun.txtpickle-email-*.html # Ignore all logfiles and tempfiles./log/*/tmp/*!/log/.keep!/tmp/.keep # TODO Comment out this rule if you are OK with secrets being uploaded to the repoconfig/initializers/secret_token.rbconfig/master.key # Only include if you have production secrets in this file, which is no longer a Rails default# config/secrets.yml # dotenv, dotenv-rails# TODO Comment out these rules if environment variables can be committed.env.env*.local ## Environment normalization:/.bundle/vendor/bundle # these should all be checked in to normalize the environment:# Gemfile.lock, .ruby-version, .ruby-gemset # unless supporting rvm < 1.11.0 or doing something fancy, ignore this:.rvmrc # if using bower-rails ignore default bower_components path bower.json files/vendor/assets/bower_components*.bowerrcbower.json # Ignore pow environment settings.powenv # Ignore Byebug command history file..byebug_history # Ignore node_modulesnode_modules/ # Ignore precompiled javascript packs/public/packs/public/packs-test/public/assets # Ignore yarn files/yarn-error.logyarn-debug.log*.yarn-integrity # Ignore uploaded files in development/storage/*!/storage/.keep/public/uploads Sorgente di Ruby on Rails .gitignore
Modello ufficiale upstream indicizzabile*.rbccapybara-*.html.rspec/db/*.sqlite3/db/*.sqlite3-journal/db/*.sqlite3-[0-9]*/public/system/coverage//spec/tmp*.origrerun.txtpickle-email-*.html # Ignore all logfiles and tempfiles./log/*/tmp/*!/log/.keep!/tmp/.keep # TODO Comment out this rule if you are OK with secrets being uploaded to the repoconfig/initializers/secret_token.rbconfig/master.key # Only include if you have production secrets in this file, which is no longer a Rails default# config/secrets.yml # dotenv, dotenv-rails# TODO Comment out these rules if environment variables can be committed.env.env*.local ## Environment normalization:/.bundle/vendor/bundle # these should all be checked in to normalize the environment:# Gemfile.lock, .ruby-version, .ruby-gemset # unless supporting rvm < 1.11.0 or doing something fancy, ignore this:.rvmrc # if using bower-rails ignore default bower_components path bower.json files/vendor/assets/bower_components*.bowerrcbower.json # Ignore pow environment settings.powenv # Ignore Byebug command history file..byebug_history # Ignore node_modulesnode_modules/ # Ignore precompiled javascript packs/public/packs/public/packs-test/public/assets # Ignore yarn files/yarn-error.logyarn-debug.log*.yarn-integrity # Ignore uploaded files in development/storage/*!/storage/.keep/public/uploads Dettaglio delle regole principali
Dipendenze e pacchetti
Esclude le cartelle dei pacchetti installati e le librerie esterne che possono essere ripristinate tramite package manager.
Artefatti di compilazione
Ignora i file binari compilati, i file oggetto intermedi e le cartelle di output generate durante la build.
Variabili d'ambiente e segreti
Previene la diffusione accidentale di chiavi di API, credenziali di database e file di configurazione locale (.env).
Cache e file temporanei
Ignora le cache dei compilatori, i dati di copertura dei test e i file di bozza temporanei per mantenere il repository agile.
Origine e licenza verificata
Salva questo file nella radice del tuo progetto con il nome .gitignore. Le modifiche avranno effetto sui file nuovi o non ancora tracciati.