Why can I not open my folder in GitHub?
The “src” folder in one of my repository is grayed out (and is not clickable):
I took the following steps before pushing to the GitHub:
- I created a new repository on GitHub.
- I initialize dthe git on my project.
git add .
git commit -m "comment"
git remote add origin url
git push -u origin master
The “src” folder is showing up on GitHub but cannot be opened. What can I do?
3 Solutions collect form web for “Why can I not open my folder in GitHub?”
I solved problem by deleting another .git files inside folders (Hidden files and folders). You should have only one .git in root folder.
The icon mean that you have marked this folder as
open your .gitmodules and you will see there the folder named as src bin.
Remove them from your
submodule and it will become a regular folder
What is this grey git icon?
If you clone the project you will find, that these folders are in fact empty:
$ ls -la bin total 0 drwxr-xr-x+ 2 fabiopoloni staff 68 8 Okt 12:18 . drwxr-xr-x+ 8 fabiopoloni staff 272 8 Okt 12:18 .. $ ls -la src total 0 drwxr-xr-x+ 2 fabiopoloni staff 68 8 Okt 12:18 . drwxr-xr-x+ 8 fabiopoloni staff 272 8 Okt 12:18 ..
There is also no
.gitmodules so it’ll show you an error when viewing the status / syncing it:
$ git submodule status No submodule mapping found in .gitmodules for path 'bin' $ git submodule sync No submodule mapping found in .gitmodules for path 'bin' No submodule mapping found in .gitmodules for path 'src'
Since they’re empty, the easiest way is to delete them and commit:
$ rm -rf bin $ rm -rf src $ git commit -a -m 'Removed empty submodules folders' $ git push