Git——0、配置

2021-02-19  本文已影响0人  GameObjectLgy
1、初次安装git需要配置用户名和邮箱

$ git config --global user.name "myname"

$ git config --global user.email "6xxxxxx@163.com"

2、生成密钥对

ssh-keygen -t rsa -C "your_email@youremail.com"
直接一直按Enter生成密钥。
秘钥位置路径通常在
C:\Users\Administrator.ssh
用记事本打开id_rsa.pub文件。

3、添加公钥到你的远程仓库(github)
上一篇 下一篇

猜你喜欢

热点阅读