git-ssh的安装配置

1、git官网下载地址:https://git-scm.com
2、配置git

进入git bash
#配置用户名
git config --global user.name"username"    
#配置邮箱
git config --global user.email"[email protected]"
#配置ssh免密登录
ssh-keygen -t rsa -C "[email protected]" 命令     连续三次回车
cat ~/.ssh/id_rsa.pub
登录进入gitee,在设置里面找到SSH KEY,将.pub文件内容粘贴进去

3、测试

ssh -T git@gitee.com

猜你喜欢

转载自blog.csdn.net/fish332/article/details/106884095