I have the following projects in a folder structure.
Homework
- Ex1
- main.cpp
- class1.cpp
- readme.txt
Ex2
- main.cpp
- class2.cpp
- readme.txt
Ex3
- main.cpp
- class3.cpp
- readme.txt
- readme.txt
- Ex1
I want to submit this whole 'project' to a given repository(which I've already set up). So I first did cd to the Homework directory and did
$git init
Then I did
$git add --all
After that I commited by
$git commit -m "Adding all folders"
Then did the push as
$git push origin master
After this when I opened the repository URL on browser I see only the readme.txt in Homework directory. I don't see the Ex1,Ex2,Ex3 folders and their contents.
What am I doing wrong here?