的Git无法推到存储库
我跟着在轨道上的书这个红宝石: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/*
2件事情需要做,目前还不清楚他们是否已经完成:
1)你的公共SSH密钥必须上传到您的到位桶帐户。
2)您必须在bitbucket网站上创建回购。 AFAIK无法从本地开发机器上的命令行执行此操作。
我已经完成了这两件事,它不起作用。谢谢 – user5500724
在你的'git remote add'命令中,你用你的用户名替换了'
当然,我把它改成了我的用户名。 – user5500724
你初始化你的本地git回购? –
否。默认情况下,IDE云具有它。 – user5500724
您正在使用'ssh'进行身份验证? –