Adding Folder/Subfolders/files in Git
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 n开发者_StackOverflow中文版ew 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?
cd desired_directory; git add .;
Er, it looks like this was answered by Justin L. in a comment while I as typing.
精彩评论