Use .gitignore to prevent committing unwanted files

(1) Create a ".gitignore" file at the root level of your project. 

(2) Edit the file and place the list of files and directories to ignore. E.g.

# Ignore bundler config.

# Ignore all logfiles and tempfiles.


# Ignore encrypted secrets key file.

If you are using IDE such as Rubymine or Android Studio, you can install the .ignore plugin and use it to automatically create the .gitignore file with the built-in template for Ruby.

(3) References:




AI Summary
Chrome On-device AI 2024-07-20 05:37:51

Share Article