WinGet install gh

Sougata Jana 1 Reputation point
2022-07-21T12:57:21.21+00:00

I have installed github cli by "winget install gh"
But, after that gh command is not working. It is saying that 'bash: github: command not found'

Windows for business | Windows Client for IT Pros | User experience | Other
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Limitless Technology 39,926 Reputation points
    2022-07-26T07:35:31.58+00:00

    Hello

    Thank you for your question and reaching out. I can understand you are having query related to GIT on Windows 11.

    Please make sure git is added to PATH variable.

    1. Open command prompt < run --> cmd >
      Run below command.
      set PATH=C:\Program Files\Git\bin;%PATH%
      Type git, it will work.

    OR

    1. Start->All Programs->Git->Git Bash

    Takes you directly to the Git Shell.

    --------------------------------------------------------------------------------------------------------------------------------

    --If the reply is helpful, please Upvote and Accept as answer--

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.