开发者

Adding Folder/Subfolders/files in Git

开发者 https://www.devze.com 2023-01-05 00:30 出处:网络
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

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

精彩评论

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