Skip to content

Cannot find git executable on on windows-2022 (GitHub-hosted runner) #136

@ochococo

Description

@ochococo

Observed error on windows-2022 (GitHub-hosted runner) that git command cannot be found:

Config:

- uses: actions/checkout@v2
- uses: webfactory/[email protected]
    with:
    ssh-private-key: |
        ${{ secrets.[redacted] }}
        ${{ secrets.[redacted] }}

Result:

'git' is not recognized as an internal or external command,
[198](https://github.com/[redacted]#step:4:199)
operable program or batch file.
[199](https://github.com/[redacted]#step:4:200)
Error: Command failed: git config --global --replace-all url."git@key-[redacted].[redacted]".insteadOf "https://github.com/[redacted]"
[200](https://github.com/[redacted]#step:4:201)
'git' is not recognized as an internal or external command,
[201](https://github.com/[redacted]#step:4:202)
operable program or batch file.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions