git - Bitbucket 克隆私有(private) git 仓库

标签 git bitbucket git-clone

我想在 bitbucket 上克隆一个私有(private) git 存储库,但我的工作站上还没有 ssh-key。当我尝试克隆时,我得到以下信息:

Cloning into 'notdefinedyet'...
Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

我必须生成一个新的 ssh-key 还是我可以获得一个之前安装的旧 key ?如果是这样,我怎样才能得到它?

最佳答案

如果您没有可用的私钥副本,则必须生成一个新私钥并将其关联到您的帐户。无法取回私钥,这就是它们的私密性。

关于git - Bitbucket 克隆私有(private) git 仓库,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20308826/

相关文章:

git - 来自多个 BitBucket 存储库的 Jenkins 作业的 Webhook 触发器

git clone 无法访问 docker 容器内的主机

linux - Git需要用户名和密码进行git push,git pull使用HTTPS方式

node.js - 使用 git 的 Yeoman

git - 自动获取 pull 请求主题/主题

git - 两个master一起使用git的方法

git - 版本控制机器特定配置

git - 如何将现有的 Git 存储库克隆到远程 Gitolite 服务器?

java - 当我尝试从 git 获取最新代码时,git 中出现 pull 时间错误

git - 显示带有上次提交日期的 git 分支