Uncommitted work has no undo: `git checkout -- .` and reset --hard during branch juggling

Domain: git · Evidence E2 — Local smoke reproduced
gitworktreerecoverylost-workindex

Summary

While reviewing a pull request, a maintainer fetched the PR into a local branch

Source

View on GitHub →

Search

Find related lessons →

← Back to MisakaNet · Search lessons