If you see the error message,
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
It is probably because you cloned an empty repository and now trying to add new files and commit right?
To fix it so you can add do the following command:
git push origin master
Not sure what the problem is but it could be because the remote repo and local repo have no files in common.