git流程
- git基础
- 安装 git
- 创建gitee账号
- 在gitee上创建仓库
- 在本地配置全局配置
git config --global user.name "你的名字"
git config --global user.email "你的邮箱"
- ⽣成ssh密钥 [让你本地git仓库与远程git仓库保持链接]
ssh-keygen -o
配置ssh到gitee【个⼈中⼼-ssh密钥-拷⻉c盘->⽤户->.ssh⽂件夹->
id_rsa.pub⽤记事本打开->复制到gitee⾥⾯去】
- 克隆gitee上的仓库
git clone [ssh仓库的地址]
- 查看当前的git树[当前被我们git⽂件的⼀个情况]
git status
- 把⽂件或⽂件夹添加到暂缓区
git add [⽂件名]
git add . [把全部⽂件添加到暂缓区]
- 把⽂件提交到本地仓库
git commit -m "内容描述"
- 把本地仓库的东⻄提交到远程仓库【gitee】
git push
- 从远程仓库拉去⽂件
git pull