git: Improve error messages (#35946)
Release Notes:
- Improved git error messages
Includes stderr in the error message for git commands, provides better
output for things like errors when switching branches.
Before:
<img width="702" height="330" alt="image"
src="https://github.com/user-attachments/assets/f32402ae-b85c-4b0b-aae8-789607e8ec9e"
/>
After:
<img width="650" height="575" alt="image"
src="https://github.com/user-attachments/assets/308dbe3c-1ff9-40b9-a187-1e12d2488c80"
/>
---------
Co-authored-by: Conrad Irwin <conrad.irwin@gmail.com>
9431c65733Jacob committed on 9/9/2025, 6:16:29 PM· committed by GitHubparentb2d7e34