开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜