我有点羞于承认到目前为止我使用的是github 桌面
,现在我决定尝试使用我按照文档
安装的gh cli
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-key C99B11DEB97541F0
sudo apt-add-repository https://cli.github.com/packages
sudo apt update
sudo apt install gh
明显成功
$ which gh
/usr/bin/gh
$ gh --version
gh version 1.8.1 (2021-04-02)
https://github.com/cli/cli/releases/tag/v1.8.1
但是要克隆一个运行的公共仓库(例如颤振画廊),gh repo clone flutter/gallery
我收到以下错误
Cloning into 'gallery'...
git@github.com: Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
exit status 128
(一切工作“开箱即用” gh-desktop
)
我错过了什么?