Hey so I pushed a new folder to my GitHub repository and well it is greyed out. Why?
I\'m new to git and have probably done something to git to cause this so how can i s
A gray folder on GitHub looks like a submodule, as I mentioned in:
It is not a sub-folder, but a special entry in the index which marks it as a submodule-like.
If you don't have a .gitmodules
file in your main repo, that special entry is typical of adding a nested repo: check if your dist/
folder has itself a .git/
subfolder.
To fix the issue, try a git rm --cached dist
(no trailing slash).
See more at "Cannot remove submodule from Git repo"
git rm --cached dist
git commit -m "Remove submodule entry"
rm -Rf dist/.git # delete the nested repo
git add dist
git commit -m "Add dist plain subfolder"
git push
it looks like you have initialised git inside this folder. To fix change directory into this folder and delete .git
then add
commit
and push
again.