Unable to add folder to git repo

前端 未结 2 609
梦如初夏
梦如初夏 2021-01-28 13:37

I think this issue has already been discussed under this question :

Recursively add the entire folder to a repository

However I still can not add some folders t

2条回答
  •  遥遥无期
    2021-01-28 14:10

    The long answer above is great but the TL;DR to fix it is:

    1. remove the .git repo of the sub-repo
    2. Run git rm -r --cached .
    3. Run git add .

    then git status should show you the folder added

提交回复
热议问题