簡體   English   中英

Git無法推送到存儲庫

[英]Git unable pushing to repository

我遵循這個關於ruby on rails的書: https : //www.railstutorial.org/book/static_pages,並且出於某些原因,我需要在命令中運行它們:

$ git remote add origin git@bitbucket.org:<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.
  • 我在Bitbucket上創建了一個名為“ sample_app”的存儲庫
  • 我看到了以下主題: git:致命的:無法從遠程存儲庫讀取信息,但我認為這不是同一問題。
  • 我試圖刪除存儲庫並創建一個新存儲庫,還嘗試刪除該項目並創建一個新存儲庫。
  • 我使用IDE Cloud

一切都不適合我。 有什么建議么? 非常感謝!

加法(設定):

[core]
        repositoryformatversion = 0
        filemode = true
        bare = false
        logallrefupdates = true
[remote "origin"]
        url = git@bitbucket.org:XXXX@gmail.com/sample_app.git
        fetch = +refs/heads/*:refs/remotes/origin/*

需要完成2件事,但尚不清楚它們是否已經完成:

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

2)您必須在bitbucket網站上創建存儲庫。 AFAIK無法從本地開發計算機上的命令行執行此操作。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM