I was trying to push multiple folders containing sub folders and documents to a repository i made on GitHub. I did the following:
I went into the folder which had 8 Sub folders and a readme.md in it, with again different sub folders and documents.
I initialized the folder using git init.
- then i added every single folder to the git one by one(in staging area) using git add folder_name.
- And the last file I added was the readme.md then i made commit to the readme file using git commit -m "Initialize readme.md".
- Then I pushed this to my GitHub repository, using git push origin master.
- I got all my folders on GitHub in my repository, but only readme and last two folders were showing properly, which had sub folders in it with some documents, remaining folders which did not had any sub folders but only documents were shown in grey color folder which gave no response on clicking.
- I have deleted all those folder in grey color.
But I want to know how i can send over folder with different sub folders on GitHub repository using git push properly?
One more question:
- How can i add images with different format or PDF documents to my GitHub repository?