Git add all subdirectories

前端 未结 7 1241
迷失自我
迷失自我 2020-12-23 10:59

I\'m having trouble adding a folder and all of it\'s subdirectories to my git repository. I realized this is a very popular question after doing some googling and I\'ve trie

相关标签:
7条回答
  • 2020-12-23 11:47

    Most likely .gitignore files are at play. Note that .gitignore files can appear not only at the root level of the repo, but also at any sub level. You might try this from the root level to find them:

    find . -name ".gitignore"

    and then examine the results to see which might be preventing your subdirs from being added.

    There also might be submodules involved. Check the offending directories for ".gitmodules" files.

    0 讨论(0)
提交回复
热议问题