[英]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.
一切都不適合我。 有什么建議么? 非常感謝!
加法(設定):
[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.