Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Directory showing up as a grey folder on github, but not tracking its content. Why?

Tags:

git

github

I have a directory "ui-kit" that shows up on github as a grey folder. It's not clickable.

Github screenshot

Here is the whole content of .gitignore:

# Fleetwit
docs
uploads/*
.env
*.prj
*.pui

# Logs
logs
*.log

#Node
node_modules

# =========================
# Operating System Files
# =========================

# OSX
# =========================

.DS_Store
.AppleDouble
.LSOverride

# Thumbnails
._*

# Files that might appear on external disk
.Spotlight-V100
.Trashes

# Directories potentially created on remote AFP share
.AppleDB
.AppleDesktop
Network Trash Folder
Temporary Items
.apdisk

# Windows
# =========================

# Windows image file caches
Thumbs.db
ehthumbs.db

# Folder config file
Desktop.ini

# Recycle Bin used on file shares
$RECYCLE.BIN/

# Windows Installer files
*.cab
*.msi
*.msm
*.msp

# Windows shortcuts
*.lnk

I tried to check why it's being ignored using git check-ignore --verbose ui-kit but it doesn't return anything. I tried various syntaxes of git add without success.

The directory used to be its own repository, but was moved inside the current project and all the original git files and directories removed.

Here is the content of that directory:

enter image description here

Why is the icon grey on github? How do I keep track of the content?

like image 203
Julien L Avatar asked Feb 01 '16 21:02

Julien L


People also ask

What does a folder with an arrow mean in GitHub?

This means that it is a repo contained inside the outer repo that you had pushed to GitHub. The easiest way to get rid of the arrow and start seeing your files properly (in my opinion) is by deleting the . git folder.

Does GitHub Show hidden files?

Use the terminal to display the . git directory with the command ls -a . The ls command lists the current directory contents and by default will not show hidden files. If you pass it the -a flag, it will display hidden files.

How do I upload a folder directly to GitHub?

On GitHub.com, navigate to the main page of the repository. Above the list of files, using the Add file drop-down, click Upload files. Drag and drop the file or folder you'd like to upload to your repository onto the file tree.


1 Answers

Thanks to @Msp for giving me the piece of info I needed: the fact that it's called a sub-module.

After googling, it turns out it was just the git cache that needed to be reset.

git rm --cached ui-kit

For people looking to fix a similar issue, you can get mode details on the following thread: un-submodule a git submodule

like image 68
Julien L Avatar answered Oct 01 '22 06:10

Julien L