#查看系统配置文件
git config --sytem --list
#查看用户配置文件
git config --global --list
#添加用户名
git config --global --user.name “xxx”
#添加用户邮箱
git config --global --user.email “xxx@xxx”
#初始化git项目
git init
#克隆远程仓库项目
git clone url
#查看文件状态
git status 【filename】
#查看所有文件状态
git status
#将文件添加到Stage
git add .
#将Stage的文件提交到本地仓库
git commit -m “xxxx”
#将本地仓库文件提交到远程仓库
git push
#########
分支操作
#列出所有的本地分支
git branch
#列出所有远程分支
git branch -r
#新建一个分支,但依然停留在当前分支
git branch 【branch_name】
#新建一个分支,并且切换到该分支
git branch -b 【brand_name】
#合并指定分支到当前分支
git merge 【brand_name】
#删除分支
git branch -d 【brand_name】
#删除远程分支
git push origin --delete 【brand_name】
git branch -dr 【brand_name】