1.你可以按如下命令来生成 sshkey:

ssh-keygen -t rsa -C "xxxxx@xxxxx.com"

2.按照提示完成三次回车,即可生成 ssh key。通过查看 ~/.ssh/id_rsa.pub 文件内容,获取到你的 public key

cat ~/.ssh/id_rsa.pub

3.复制生成后的 ssh key,添加到项目中。

4.添加后,在终端(Terminal)中输入

ssh -T git@gitee.com

 5.简单的设置

git config --global user.name "yourname"
git config --global user.email "youremail@youremail.com"

 

相关文章:

  • 2021-04-27
  • 2021-05-18
  • 2021-07-09
  • 2021-11-06
  • 2022-02-22
  • 2021-05-26
  • 2021-12-03
猜你喜欢
  • 2022-12-23
  • 2021-04-29
  • 2021-05-19
  • 2022-01-13
  • 2021-08-17
  • 2021-06-05
  • 2022-12-23
相关资源
相似解决方案