git clone {url} 检出
git init 本地初始化git仓库
git --globle user.name 设置全局用户名
git --globle user.email 设置全局邮箱
git remote add {origin} {url} 关联远程库
git remote remove {origin} 取消关联远程库
git remote remove {branch} 删除远程库分支
git add {file} 选中更改
git commit -m {msg} 提交
git pull {origin} {branch} 更新远程库分支到本地
--allow-unrelated-histories 强制从版本历史不同的库更新
git push {origin} {branch} 提交修改到远程库
git checkout (gco) 切换分支
-b {branchName} 新建分支
git branch 查看本地分支
-D {branchName} 删除本地分支
git branch -m {oldName} {newName} 重命名分支
git branch --set-upstream-to {origin/branchName} 将当前分支关联到远程分支
git merge {branchName} 合并分支