How can I add a folder recursively, with its subfolders and its files?
When I use git add folder_name
, only that folder is getting added. git status
now shows the files under the subfolders are shown as new files and untracked.
For example, in Rails application, inside the Rails project folder, there are many folders:
- app
- public
- db
- script
- vendor
- etc.
Is there a better way to add a rails project to git?