git第一次提交报错

报错信息

$ 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
error: failed to push some refs to '/work/fun/git_experiments/bare'

解决方法::

git push --set-upstream origin master

 

posted @ 2018-03-29 16:35  ShengLeQi  阅读(288)  评论(0编辑  收藏  举报