Reputation: 11552
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:
Is there a better way to add a rails project to git?
Upvotes: 2
Views: 3977
Reputation: 1841
cd desired_directory; git add .;
Er, it looks like this was answered by Justin L. in a comment while I as typing.
Upvotes: 4