Solution for "flutter doctor not running in CMD"
To fix the issue where flutter doctor fails in CMD (e.g., showing errors like "dd93de6fb1776398bf586cbd477deade1391c7e4 was unexpected"):
Uninstall Git and Flutter:
Uninstall Git via Windows Programs and Features.
Delete the Flutter folder (e.g., C:\flutter or wherever it was installed).
Reinstall Git:
Download Git from https://git-scm.com/download/win and install to C:\Program Files\Git.
Select "Git from the command line and also from 3rd-party software" during setup.
Verify with git --version in CMD or PowerShell.
Reinstall Flutter in User Directory:
Download Flutter SDK from https://flutter.dev/docs/get-started/install/windows.
Extract to C:\Users\<YourUsername>\flutter to avoid permission issues.
Add C:\Users\<YourUsername>\flutter\bin to the system Path environment variable.
Run flutter doctor:
This resolved the issue by completely reinstalling Git and moving Flutter to the user directory (C:\Users\<YourUsername>\flutter). No additional Git configuration (e.g., safe.directory) was needed in my case.