Install MinGit with winget
MinGit is a minimal, lightweight version of Git for Windows that includes only the core Git command-line tools. It's designed for automated environments, CI/CD pipelines, and users who need basic Git functionality without the full Git for Windows package, which includes Git Bash, GUI tools, and other utilities. MinGit offers a smaller footprint and can be used portably without installation.