git基本指令
//初始化
git init
//添加commit文件
git add .
git add file/folder
//查看变更
git stage
//暂存区
git status
//commit
git commit -m 你的备注
//查看commit记录
git log
//查看你的分支
git branch
//切换分支
git checkout 分支名
//git checkout -b 新分支名
//.gitignore
https://github.com/github/gitignore
//删除文件
rm -rf a.md
git add .
git commit -am “删除a.md”
远程操作
//添加远程仓库
git remote add origin url
//提交
git push origin branch
//
git pull origin branch
//以后提交可以
git push
//克隆一份
git clone url
笔记
1,不要提交不需要的东西
2,提交前review一遍代码
3,注意版本