【发布时间】:2015-01-29 14:45:56
【问题描述】:
我正在关注 Rails 教程,但卡在第 1.4.3 章 Bitbucket 上。 https://www.railstutorial.org/book/beginning#sec-bitbucket 这是我写的,也是我得到的答案。
pellem@rails-tutorial:~/workspace/hello_app (master) $ git remote add origin git@bitbucket.org:pellemartenson/hello_app.git
fatal: remote origin already exists.
pellem@rails-tutorial:~/workspace/hello_app (master) $ git push -u origin --all
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
我发现了一些类似的问题并尝试了一些建议。但它对我不起作用或者我不明白答案。
【问题讨论】:
-
你试过了吗:git push -u origin master
-
当我尝试这样做时会发生这种情况: $ git push -u origin master error: src refspec master does not match any。错误:未能将一些引用推送到 'git@bitbucket.org:pellemartenson/hello_app.git'