Follow these steps to project to Github
git init
git add .
git commit -m "Add all my files"
git remote add origin https://github.com/webxpertzone/php.git
Upload of project from scratch require
git pull origin master
.
git pull origin master
git push origin master
Reference : https://stackoverflow.com/questions/12799719/how-to-upload-a-project-to-github