1.配置本机
-
配置全局用户:
git config --global user.name "huitailang" git config --global user.email "huitailang2021@126.com"
-
生成密钥
ssh-keygen -t rsa -C "邮箱"
2.常见概念
-
workspace:工作区
-
index(stage):暂存区
-
local repository:本地仓库
-
remote repository:远程仓库
3.创建远程仓库
-
注册码云
https://gitee.com/
-
全局设置(给自己起名和写邮件地址)
C:\Users\Administrator\gitconfig
git config --global user.name "huitailang" git config --global user.email "huitailang2021@126.com"
-
创建仓库
-
生成密钥
ssh-keygen -t rsa