安装路径默认在/usr/libexec
git config --global user.name "XXXX" git config --global user.email "XXXXXXXXXX@qq.com"
git config --global user.password tianshan
git config --list (查看是否配置成功)
1.生成公钥:
ssh-keygen -t rsa -C "邮箱@qq.com"
查看公钥:
cat /root/.ssh/id_rsa.pub将公钥复制到码云
码云这个添加公钥的页面在
设置/安全设置/ssh公钥中
这里演示修改本地仓库的用户名和邮箱:
git config --replace-all user.name "name"
git config --replace-all user.email "123@qq.com"