Gitリモートリポジトリ構築

http://capm-network.com/?tag=Git%E3%83%AA%E3%83%A2%E3%83%BC%E3%83%88%E3%83%AA%E3%83%9D%E3%82%B8%E3%83%88%E3%83%AA%E6%A7%8B%E7%AF%89

                                                  • -

$:~/script/git_tutorial$ git push
user@server's password:
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


===>>> the problem is that there are no commits in "bare". This is a problem with the first commit only, if you create the repos in the order (bare,alice). Try doing

$: git push --set-upstream origin master

This would only be required the first time. Afterwards it should work normally.

http://stackoverflow.com/questions/6157730/why-cant-i-push-to-this-bare-repository