2

Git command :

git init
git add .
git commit -m "project"
git remote add origin https://github.com/
git push -u origin master

Gray Folder github

How to resolve this issue?

VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250
Ramin Farajpour Cami
  • 1,605
  • 3
  • 11
  • 21
  • I'm not sure. How does this affect you other than the color itself? – Tim Biegeleisen Feb 11 '16 at 08:40
  • Possible duplicate of [Directory showing up as a grey folder on github, but not tracking its content. Why?](http://stackoverflow.com/questions/35140715/directory-showing-up-as-a-grey-folder-on-github-but-not-tracking-its-content-w) – ChrisGPT was on strike Feb 11 '16 at 12:24

1 Answers1

2

Because your repo includes a nested git repo (a subfolder with a .git/ folder in it).

When you do a git add ., you will record that subfolder as a gitlink (special entry in the index) which, once pushed to your GitHub repo, is displayed as a grayed folder.

See also "Difference between nested git repos and submodules".

If you want to include that folder content into your sources, simply remove the .git folder of that gray directory, do a git add . again, commit and push.

Community
  • 1
  • 1
VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250