I have a directory "ui-kit" that shows up on github as a grey folder. It's not clickable.
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:
Why is the icon grey on github? How do I keep track of the content?
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.
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.
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.
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With