未踩坑成功,请勿参考
1. 安装马云下载工具 repo
sudo snap install git-repo
2. repo+ssh下载
如果通过repo + https 下载请自行配置
mkdir open_harmony
cd open_harmony
git init .
git config --local user.name "your_name"
git config --local user.email "your_email@test.com"
生成密钥对
ssh-keygen -t ed25519 -C "your_email@example.com"
复制id_ed25519.pub
内容到gitee的SSH公钥:
cat /path/to/id_ed25519.pub
测试公钥:
ssh -T git@gitee.com
The authenticity of host ‘gitee.com (192.168.168.168)’ can’t be established.
ED25519 key fingerprint is SHA256:xxxxxxxxxxxxyyyyyyyy