不能推到bitbucket

发布于 2025-01-18 07:10:39 字数 983 浏览 1 评论 0原文

我已多次重复以下过程:

ssh-keygen

eval ssh-agent

Agent pid is print

ssh-add ~/.ssh/id_rsa

我输入密码,然后看到短语“添加身份:...”

cat ~/.ssh/id_rsa.pub

我复制我的公共 SSH 并将其打印到 https://bitbucket.org/account/settings/ssh-keys/

ssh -T [email protected]

我看到此文本:

authenticated via ssh key.

You can use git to connect to Bitbucket. Shell access is disabled

但是,当我打印

git push -u origin master

时,我收到此消息:

The requested repository either does not exist or you do not have access. If you believe this repository exists and you have access, make sure you're authenticated.

我做错了什么?怎么处理呢?

I have repeated following procedure for many times:

ssh-keygen

eval ssh-agent

Agent pid is printed

ssh-add ~/.ssh/id_rsa

I enter my passphrase, and I see phrase "Identity added: ..."

cat ~/.ssh/id_rsa.pub

I copy my public SSH and print it to https://bitbucket.org/account/settings/ssh-keys/

ssh -T [email protected]

I see this text:

authenticated via ssh key.

You can use git to connect to Bitbucket. Shell access is disabled

But then, when I print

git push -u origin master

I get this message:

The requested repository either does not exist or you do not have access. If you believe this repository exists and you have access, make sure you're authenticated.

What wrong am I doing & how to deal with it?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

清引 2025-01-25 07:10:39

git push --set-upstream origin master 因为您的源不知道您要推送到的分支是否是master

git push --set-upstream origin master because your origin does not know if, the branch you're pushing to is master or not.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文