Run each command separately. Accept only the package named by the command.
winget install --id Git.Git -e --source wingetwinget install --id GitHub.cli --source wingetExpected: both installations report success. Close the whole terminal window, reopen PowerShell, then rerun the two checks above. A new tab is not sufficient after the GitHub CLI installer changes `PATH`.
If `winget` is unavailable: official Git installerIf `winget` is unavailable: official GitHub CLI installer