git 使用注意事项:
1.查看git配置
git config --list
2. 设置全局用户名,邮箱
git config --global user.name "输入你的用户名"
git config --global user.email "输入你的邮箱"
已经有可以用以下命令修改
git config --global --replace-all user.email "输入你的邮箱"
git config --global --replace-all user.name "输入你的用户名"
3.创建SSH KEY
ssh-keygen -t rsa -C "youremail@example.com"
4.使用生成的id_rsa.pub存入github构建连接。
复制代码