How to fix wp-env: “error: Your local changes to the following files would be overwritten by checkout”

How to fix wp-env: “error: Your local changes to the following files would be overwritten by checkout”