git status # 查看当前项目的状态
git add . # 把当前目录中的修改提交到缓存区
git commit -m ‘xxx’ # 把缓存区中的内容提交到本地仓库
git merge xx # 合并xx分支到当前分支
git branch # 查看分支信息
git checkout -b feature/xx # 创建并切换到新分支
git log # 查看日志
git reflog # 查看所有的日志
git reset logid --hard # 回退到指定的记录
git rebase # 变基
git push # 推送到远程仓库
git pull # 拉取远程仓库的代码
git remote -v # 查看远程仓库信息
git remote add 仓库名 地址 # 添加远程仓库信息
git remote rm 仓库名 # 删除远程仓库信息