Git add all files also from nested git repos

梦想与她 提交于 2019-12-12 20:44:04

问题


My dotfiles repository has some tmux plugin directories which are themselves git repositories. When I do git add -all these nested repos are ignored.

Is there a way to ignore the git semantics of these nested repos and treat everything as regular files?


回答1:


You may be looking for the Git feature called submodules. This feature helps you manage dependent repositories that are nested inside your main repository.

Answer from here

Also you might want to check the .gitignore files you might have. It can prevent the nested repositories from being added.



来源:https://stackoverflow.com/questions/35025048/git-add-all-files-also-from-nested-git-repos

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!