I have a java project that contains one java file called Calculator. I created a repository in Github and I tried to push the local repository to the remote one by following:
First: I created a readme file echo "# Simple Java calculator" >> README.md
Second: git init
Third: git add README.md
Fourth: git commit -m "simple calculator"
Fifth: git remote add origin https://github.com/XXXXX/Calc.git
Sixth: git push -u origin master
After that I checked the repository online and I only found the Read me file. I later figured our I need to add the Calculator file and I tried the following options:
git add .
git push -u origin master
and this option
git add Calculator.java
git push -u origin master
but both did not work and the file is not in the remote repository yet. Can someone help me with this