git 配置
git 配置
操作
git config --global user.name "dark-lights"
git config --global user.email "1833390160@qq.com"
ssh-keygen -t rsa -C "1833390160@qq.com"
# 将 .ssh/id_rsa.pub中的内容复制到key
# 去github上添加密钥网址:https://github.com/settings/keys
ssh -T git@github.com # 检测密钥对是否可以使用
# 配置远程库地址
git remote add origin http://git.XXXX.com/XXX/XXX.git/

浙公网安备 33010602011771号