Here’s how to add a recently created Ruby on Rails project to git:
1. Create your new project:
$ rails -d mysql project_name
2. Create some .gitignore empty files so you save the entire structure of your project (git doesn’t include empty folders):
$ touch db/.gitignore lib/.gitignore log/.gitignore tmp/.gitignore vendor/.gitignore
3. Create a new .gitignore file in the root directory [...]