我在rails book上关注这个红宝石: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/*
答案 0 :(得分:1)
需要做两件事情,并且不清楚它们是否已经完成:
1)您的公共SSH密钥必须上传到您的Bitbucket帐户。
2)您必须在bitbucket网站上创建回购。 AFAIK无法通过本地开发计算机上的命令行执行此操作。