For your first push with git, you may get following errors when you use github or bitbucket.
$ git push No refs in common and none specified; doing nothing. Perhaps you should specify a branch such as 'master'. fatal: The remote end hung up unexpectedly Everything up-to-date
Just run following command to set your remote upstream to be master branch.
git push --set-upstream origin master