git clone 克隆项目到本地
git add . 提交到暂存区
git commit -m 提交到本地仓库,在m后添加备注信息
git push 推送到远程仓库
git push origin --delete 'xxxxx' 删除远端分支
git checkout 'xxxxx' 切换分支
git checkout -b 'xxxxx' 在原分支的基础上添加新分支,并且跳转到新分支,'xxxxx'里面可以给新分支命名
git branch 查看分支
git branch -d 'xxxxx' 删除本地分支
git log 查看日志
git reset --hard <xxxxx> 强制回滚到某个历史版本,xxxxx输入想要回滚的版本,如上面的红色方框
git push -f 不拉取线上的仓库的代码,强制提交,覆盖该版本后的代码