ssh进行git远程仓库下载与连接

$ git config --global --list
fatal: unable to read config file 'C:/User/.gitconfig': No such file or directory

 

git config --global user.name zzl14
git config --global user.email "email"

生成公私钥ssh-keygen -t rsa -b 4096 -C "your_email@example.com"

Your identification has been saved in /c/Users/23274/.ssh/id_rsa
Your public key has been saved in /c/Users/23274/.ssh/id_rsa.pub

 

 添加公钥到ssh的仓库设置中。

然后下载 git clone  git@github.com:name/repository.git

 

 

 

posted @ 2024-04-08 15:31  zzl14  阅读(7)  评论(0)    收藏  举报