2

I have:

dirA/dir1 dirA/dir2 

dirA has been added and I see it on the browser - when I click "dirA", I see dir1 and dir2, grayed out like I have explained below.
dir1 and dir2, both have more than one sub-directories and files.

git add dir1 git commit -m "..." 

I get a message "On branch master, nothing to commit, working directory clean"

I am not sure why it wont go through and I see those as "grayed out" on the GitHub repo via browser.

Can someone help? I saw some similar threads on stackoverflow but they did not help me.

6
  • I did and I get the same response as above on doing a "git commit". Commented Aug 25, 2014 at 5:04
  • is dirA your Git Repository ? Commented Aug 25, 2014 at 5:11
  • there is an existing repo where I created a folder called "dirA". I am also migrating from hg to github here. Commented Aug 25, 2014 at 5:15
  • then just add dirA to your repo and all the sub-directories and files will be added. If you did this and git says "On branch master, nothing to commit, working directory clean", then you have already commited your code. Maybe try to push your commit to see it on your github server. Commented Aug 25, 2014 at 5:19
  • should i have "git push reponame"? where the reponame is the name of your https://....? Commented Aug 25, 2014 at 5:23

1 Answer 1

1

If you see on GitHub "grayed" folder, followed by a SHA1, those are submodules.

See "Git submodules in github repo"

GitHub submodules

That means they are nested git sub-repos which are referenced by the main repo.

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.