Why can I not open my folder in GitHub?

The “src” folder in one of my repository is grayed out (and is not clickable):

screenshot

  • Dropping a commit in git rebase -i does not reduce the size of .git folder
  • Git bash can not identify USB flash drives
  • Manual merge on GIT
  • How to connect github with visual studio code?
  • Git stash with staged files. Does stash convert staged files to unstaged?
  • GitHub Enterprise vs. Team Foundation Server (TFS)
  • I took the following steps before pushing to the GitHub:

    1. I created a new repository on GitHub.
    2. I initialize dthe git on my project.
    3. git add .
    4. git commit -m "comment"
    5. git remote add origin url
    6. git push -u origin master
    7. username
    8. password

    The “src” folder is showing up on GitHub but cannot be opened. What can I do?

  • Why does git revert fail on this example?
  • Git submodules on master
  • Which is faster, ssh or git protocol?
  • Git - best practices (in general, and from a perspective of former SVN user.)
  • Are concurrent operations possible with Git repositories?
  • Using git to release to node.js
  • 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 submodule.
    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
    
    Git Baby is a git and github fan, let's start git clone.