reset vs revert:本地重写与公开修复 | Git

本章覆盖:unpublished history;published history;branch rewrite;collaboration;audit;force push;CI;rollback;revert for shared branch;reset for controlled local cleanup;没有“一律不能 reset”,关键是历史是否被共享。

本章知识点

  • unpublished history
  • published history
  • branch rewrite
  • collaboration
  • audit
  • force push
  • CI
  • rollback
  • revert for shared branch
  • reset for controlled local cleanup
  • 没有“一律不能 reset”,关键是历史是否被共享