git 创用操作
1: git clone xxx # 克隆项目
2: 克隆项目及其子模块
git clone --recurse-submodules
3: git pull # 拉去
4: git branch -a # 获取所用分支
5: git branch -D branch_name #删除分支
6:git branch remote -v add # 添加远程分支
7: git checkout branch_name # 切换分支
8: git checkout -b branch_name # 创建新的本地分支并切换
9: git status # 查看文件状态
10: git add xx # 保存修改文件
11: git commit -m “” # commit
12: git commit --amend --no-edit #一最近的commit 提交不修改信息
13:git rebase origin/master #将当前分支与远程的master 分支合并
14: git rebase - i commit_id # 将提交记录进行合并
15: git push origin xxx #提交到远程分支
16:git diff # 查看文件差异