A reference in this repository, Git/README.md, for operations engineers who already use Git. Its rule: inspect first, then change; on shared branches, prefer an auditable corrective commit over rewriting history. It covers native Git only, not platform features such as branch protection.1
Takeaways
- Work moves between working tree, staging area, local repository, and remote. See Git’s four places.
- Divergence needs an explicit choice of fast-forward, rebase, or merge. See Syncing a Git branch.
- Revert on shared branches; reset only unshared work; reflog recovers local mistakes.1 See Undoing and recovering in Git.
Footnotes
-
Essential Git Commands for Operations, original on GitHub ↩ ↩2