adding a new web project to github
===

I am new to git. Just started using it. please help where am i doing wrong.

I have to add a spring web project to github. I created a new repository on github.

In my netbeans i did a right click versioning intialize git repository.

then right clicked on the project again and did git->add.

then git->commit.

and the did a git->push ->chose my github repository url -> cheked the master checkbox and finish. I am getting a push error "push would result in a non-fastforward update". and my files are not pushed. do i need to do it at files level but not a project folder level . please help.