2016-04-29 136 views
0

我跟着在軌道上的書這個紅寶石:https://www.railstutorial.org/book/static_pages 和某些原因的一部分,當我需要這些運行命令:的Git無法推到存儲庫

$ git remote add origin [email protected]:<username>/sample_app.git 
$ git push -u origin --all # pushes up the repo and its refs for the first time 

我得到這個錯誤:

conq: repository does not exist. 
fatal: Could not read from remote repository. 

Please make sure you have the correct access rights 
and the repository exists. 
  • 我創建了到位桶名稱「sample_app」
  • 存儲庫我看到這個題目:git: fatal: Could not read from remote repository但我不TH墨水是同樣的問題。
  • 我試圖刪除存儲庫,並創建一個新的,也刪除該項目並創建一個新的。
  • 我有IDE雲

所有的工作,我沒有工作。 有什麼建議嗎?非常感謝!

加(配置):

[core] 
     repositoryformatversion = 0 
     filemode = true 
     bare = false 
     logallrefupdates = true 
[remote "origin"] 
     url = [email protected]:[email protected]/sample_app.git 
     fetch = +refs/heads/*:refs/remotes/origin/* 
+0

你初始化你的本地git回購? –

+0

否。默認情況下,IDE雲具有它。 – user5500724

+0

您正在使用'ssh'進行身份驗證? –

回答

1

2件事情需要做,目前還不清楚他們是否已經完成:

1)你的公共SSH密鑰必須上傳到您的到位桶帳戶。

2)您必須在bitbucket網站上創建回購。 AFAIK無法從本地開發機器上的命令行執行此操作。

+0

我已經完成了這兩件事,它不起作用。謝謝 – user5500724

+0

在你的'git remote add'命令中,你用你的用戶名替換了''嗎?你發佈的代碼說,我不知道這是否僅僅是因爲你不想發佈你的用戶名,或者如果這是實際的命令。 –

+0

當然,我把它改成了我的用戶名。 – user5500724