Pushing a local repository to github

i trying to push a local repository to github but i caught in this
message:

To https://github.com/webofbits/app1.git
! [rejected] master → master (fetch first)
error: failed to push some refs to
https://github.com/webofbits/app1.git
hint: Updates were rejected because the remote contains work that you do
hint: not have locally. This is usually caused by another repository
pushing
hint: to the same ref. You may want to first integrate the remote
changes
hint: (e.g., ‘git pull …’) before pushing again.
hint: See the ‘Note about fast-forwards’ in ‘git push --help’ for
details.

i got it!

using git pull

Cristiano,

Technically your post is off-topic since it is not related to Rails, but
check out this resource which I highly recommend for you to learn git:

http://gitready.com

-Jason