Other than the database and log files are there any other files that should not be in the repository for security reasons?
The project will mostly be worked on by myself however the code is to be stored on a shared repository which will be available to a few other users should they want to pull from it. The project is reasonably simple, so i am not too worried about security in my actual code – this is more to protect any test data etc and to build up ‘good practice’ in this type of project.
A typical
.gitignorefile in a “ruby on rails” context could look something like:But, as pointed out by the article “rorgitignore : .gitignore files specific for Ruby on Rails“, you can also use
.gitignoreto add empty directories.If you are still focused only on the main .gitignore file, here is a more complete one, from iCoreTech Research Labs