1

I have w problem with pushing whole folder with its content to my repository on GitHub.

I use the following:

$ cd principal 
$ git add * 
$ git push 

Where principal is the name of folder containing two other folders (Z1, Z2) and their content. Then I visit the GitHub and see:

enter image description here

There is definitelly sth wrong with Z1 folder - I expected to see sth openable (like Z3) as this folder is a java project containing src and other folders. What is happeing?

An Dorfer
  • 1,178
  • 2
  • 8
  • 14
Marta Karas
  • 123
  • 1
  • 6
  • check http://stackoverflow.com/questions/572549/difference-between-git-add-a-and-git-add –  Feb 24 '14 at 12:39
  • possible duplicate of ["nothing to commit (working directory clean)" when a folder has been added](http://stackoverflow.com/questions/19130633/nothing-to-commit-working-directory-clean-when-a-folder-has-been-added) – random Feb 24 '14 at 13:57
  • 1
    Sorry for the migration: this has nothing to do with Superuser – VonC Feb 24 '14 at 15:21

1 Answers1

1

The grey folder is a submodule

That means Z1 is a nested git repo added in your main repo as a submodule.

VonC
  • 14,433
  • 5
  • 47
  • 61