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

  • How to override base during merge?
  • rebase - automatically continue if rerere resolved all conflicts
  • Git aliases error in .gitconfig file
  • What is the git equivalent for a specific version checkout, like “svn checkout -r 123 <svn_rep_url>”
  • Getting errors with ant in netbeans, but no meaningful error message is produced
  • git how to merge merges from a specific author?
  • 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?

  • Disable merge button on GitHub till a pull request is approved
  • How do I check out a certain revision with Git?
  • git status and git diff empty after failed git am
  • How do I remove deleted Git branches from Visual Studio 2015
  • What happened if I didn't add a dot at the end of `git checkout `?
  • Git colors: How do I set colors for the upstream branch in “git branch -vv”?
  • 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.