Two Git commands that saved me from critical mistakes at work: git reflog to recover lost commits, and git rebase -i to rewrite history cleanly before a PR.
How to integrate a new DDD/hexagonal module into an existing legacy codebase without a full rewrite. The “Legacy Port in Infrastructure” pattern explained with concrete examples and diagrams.


