What does the gray icon mean in remote github?

Can someone tell me why I have a gray icon when I click on my files on github? There should be models, views, and controllers on the side of the application directory, but I cannot click on the remote GitHub.

enter image description here

+59
git github github-for-windows
Oct 25 '13 at 7:57
source share
8 answers

It looks like you have created a submodule indicating an inaccessible remote location.

See this answer . This icon, when green, indicates an option module. I assume this was gray in your case because the add-on module was not configured correctly.

Given that .gitmodules no .gitmodules , it should be removed, leaving the add-on module without information removed.

If you enter the app and type git remote -v , you will see where this module points too. This place is currently unavailable.

In a similar scenario, I added a submodule and removed .gitmodules . The result of GitHub looks like this:

missing sub module

+21
Oct 25 '13 at 8:45
source share
 git rm --cached <folder_name> 

Then go to the parent directory and do:

 git add . git commit -m "<your_message>" git push --all 
+33
Apr 25 '17 at 5:00
source share

It looks like you initialized git inside the folder. Delete the git file (rm -rf) from the subfolder and create a new repo and reinitialize git.

+18
Oct 20 '15 at 5:43
source share

You have already initialized git inside the application directory and cannot find the remote one. Delete the .git file inside the application .

 [app(master)]$ sudo rm -r .git 

Or show hidden files inside the folder and do it manually. Then commit again and drag the parent folder changes

+1
Jan 14 '17 at 11:04 on
source share

The easiest method I found is to simply delete the folder from the local one and update the remote repo. Go to your local directory and cut the folder with the wrong settings for the .git subfolder to another location (outside the local repo, for example, on the desktop) so that you can fix the problem and copy it later, and then run:

git submodule update

git add --all

git commit --all

git push

This will delete the folder that is inactive on the remote repo. Then copy the folder back to your local files and run the add -all commit -all git command, as mentioned above, first take care to first remove the incorrectly installed .git folder from the subfolder to avoid the same issue again; to find this on Linux systems, use cntrl-h from a folder to view hidden files in your folders, you will see the .git folder present in the subfolder that causes this problem, just delete it and that should fix it.

+1
Dec 29 '17 at 23:02
source share

It already has .git inside it and therefore looks gray. those. it has git initialized inside it.

0
May 10 '17 at 5:42 a.m.
source share

In my case, I initialized the git repository in the root folder (the one that has manage.py) when deploying to Heroku before , installing the git repository in the project's parent folder.

When I created a new repo in the parent folder of the project, the root folder that handled model views and controllers was not available. The following worked for me:

  • Delete parent repo folder
  • Create a new repo without checking "Initialize this repository using README", since we will import the existing repository.
  • In the root folder with the manage.py file, do the following:

    git remote incremental source "github repo link"

    git push -u origin master

  • Update your Github repository and all your directories should be present.
0
May 13, '17 at 21:16
source share

Git considers it a submodule since it has a .git directory. To fix...

Changed directory to intruder directory:

 cd <offending git submodule> 

Delete the .git directory inside it:

 rm -rf .git 

Update git cache:

 git rm --cached <offending git submodule> 

Change to the parent directory:

 cd .. 

Add a directory to git:

 git add . git commit -m "Changed submodule to directory" git push --all 
0
Dec 20 '18 at 10:47
source share



All Articles