01比较不同分支之间差了哪些代码改动

02查看不同版本之间的代码差异具体是什么

03将暂存区中的多个功能代码分成多次提交

04feature分支开发到一半时切换到bugfix分支

05对本地不规范的提交历史进行修改和调整

06对本地刚做出的修改、暂存和提交进行撤回

07远程和本地同时撤回分支合并操作

08二分查找哪一次提交引入了线上bug

09让多个项目共享一个子项目的代码修改权利

09团队拆分迁移项目代码时简化提交历史

10将新版本的功能放到上一个版本提前上线

11基于GitLab的代码权限控制以及强制代码审查

12-Git删除所有的历史记录

  1. 1.Checkout
  2. git checkout --orphan latest_branch
  3. 2. Add all the files
  4. git add -A
  5. 3. Commit the changes
  6. git commit -am "commit message"
  7. 4. Delete the branch
  8. git branch -D master
  9. 5.Rename the current branch to master
  10. git branch -m master
  11. 6.Finally, force update your repository
  12. git push -f origin master