Git
工作目录
- 工作目录(working Directory:平常存放代码的目录
- 暂存区(stage/index)
- 资源库(repository)
- 远程仓库 (Remote Directory)

git 命令
git init 初始化命令
git add file 添加到暂存区
git commit -m "说明" 添加到本地仓库
git remote add origin https://gitee.com/jiruixin/app123456.git 这是绑定到远程仓库
git push -u origin master 推送到远程仓库 的master分支
git分支管理
git branch git分支管理
git branch -r 列出远程分支
git branch branch_name 新建分支不切换到改分支
git checkout -b branch_name 新建分支并且切换到改分支上
git merge branch_name 指定分支合并到当前分支
git push --set-upstream origin branch_name 推送分支到远程
git push origin --delete branch_name 删除远程分支