git配置账号,ssh
配置邮箱
git config --global --add user.name "账号"
git config --global --add user.email "邮箱"
生成ssh
ssh-keygen -t rsa -b 4096 -C "邮箱"
验证ssh
ssh -T git@gitlab.xxx.com
ssh -T git@zr-gitlab.xxx.com
有时会出现在idea中拉取失败的情况,此时需要换一种方式
# 克隆
git clone https://地址
# 配置凭据缓存
git config --global credential.helper manager-core
配好之后,idea在拉取时,勾选“凭证登录”方式

浙公网安备 33010602011771号