Administrator
Administrator
Published on 2024-03-27 / 166 Visits
0
0

git免密配置

git ssh 免密登录步骤

  1. 安装git https://git-scm.com/downloads

  2. 配置ssh key

ssh-keygen -t rsa -C "你的邮箱"
  1. 配置用户和邮箱

git config --global user.name "你的名字"
git config --global user.email "你的邮箱"
  1. 复制ssh 可以到gitlab

cd ~/.ssh 
## # 复制id_rsa.pub 内容到下图gitlab ssh秘钥里


Comment