If you are using Github to store or access your code then you might be faced this issue.
In this tutorial, I will provide you a solution to resolve the issue related to submodule gray icon directory from git repo.
When you have this issue, you will face below issues on a git repository.
1. You will find one of your directory changed and not accessible through git repo.
2. You will not able to add the same directory again using git add command.
3. You will not able to remove submodule gray icon directory from git repo.
I am posting this solution because the same issue I have faced with one of my GitHub repositories and after long hours of searching on the internet. I have found some safe steps to solve this issue.
You just need to perform below-provided steps one by one.
Step 1: Check Submodule status
A submodule allows you to keep another Git repository in a subdirectory of your repository. The other repository has its own history, which does not interfere with the history of the current repository. This can be used to have external dependencies such as third party libraries for example.
Below command provides you path of the subdirectory where .git directory available and because of this, you have faced this issue. With below command, we will check which subdirectory is not accessible from git repo.
With the following command, we will check which subdirectory is not accessible from git repo.