Gitリモートリポジトリ構築
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- -
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
$:~/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