WSL2 corrupting Git repositories and shell history
Problem found, added sync() before shutdown.
<a href="https://github.com/microsoft/WSL2-Linux-Kernel/issues/168#issuecomment-754856054" rel="nofollow">https://github.com/microsoft/WSL2-Linux-Kernel/issues/168#is...</a>