Share via

why the git command is unknown in powershell ?

Jean-Paul Capdeville 20 Reputation points
2024-09-02T14:17:58.4133333+00:00

I use VS Code for learn .NET (under Windows 11).

In an example, the command : git clone https:// ... is rejected by powershell

It seems to be a Bash command, perhaps ...

would you please to help me ?

TAL

This question is related to the following Learning Module

Developer technologies | .NET | Other

Answer accepted by question author

Deleted

This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


Comments have been turned off. Learn more

4 additional answers

Sort by: Most helpful
  1. ADARSHA K R 5 Reputation points
    2024-09-18T15:34:00.8966667+00:00

    If the git command is unknown in PowerShell, it means Git is either not installed or not in your system’s PATH. To fix this:

    1. Install Git from the official website.
    2. Add Git to PATH: Ensure the Git bin and cmd directories are in your system’s PATH environment variable.
    3. Verify Installation: Run git --version in PowerShell to check if Git is recognized.

    This should resolve the issue.

    Was this answer helpful?

    1 person found this answer helpful.

  2. Anonymous
    2024-09-03T05:52:04.3833333+00:00

    Hi Jean-Paul Capdeville,

    We're delighted to hear that your issue has been resolved. If you encounter any further challenges, please don't hesitate to get in touch with us, and we'll be more than happy to provide additional assistance.

    Thank you.

    Was this answer helpful?

    0 comments No comments

  3. Jean-Paul Capdeville 20 Reputation points
    2024-09-02T17:00:37.14+00:00

    I had resolved my problem with documentation "Clone github repository with Visual Studio Code - JavaScript on Azure"

    Thanks a Lot

    Was this answer helpful?


  4. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.

    1 deleted comment

    Comments have been turned off. Learn more

Your answer

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