0

I'm getting started with the Lightning Web Components and chose trailheads to get the insight into the basics. I am working on Push and Deploy Lightning Web Component Files of the LWC basics module.

It requires installing e-bikes using the Saleforce DX.

A step here involves cloning the app using the below command:

git clone https://github.com/trailheadapps/ebikes-lwc

However, this leads to the following error:

'git' is not recognized as an internal or external command, operable program or batch file.

I have native git installed on my desktop and I'm not sure how to resolve this even after spending hours on the same thing .

Any help would be much appreciated.

2
  • By "native Git", do you mean GitHub Desktop? What specific package did you install?
    – David Reed
    Commented Jun 29, 2019 at 11:57
  • @DavidReed.. Yes by native Git I mean Github desktop. Commented Jun 29, 2019 at 12:05

1 Answer 1

6

GitHub Desktop is a distribution of Git that comes with a graphical user interface. It provides much of the same functionality as command-line Git, but if you wish to use this product to complete Trailhead modules, you'll need to translate the commands provided for use in the CLI into actions in the GitHub Desktop UI.

GitHub provides instructions on how to clone a repository using GitHub Desktop.

If you want to use the CLI version of Git, you'll need to make sure it is installed and configured appropriately for your OS. The main Git website is a good starting point that will provide download links for your OS. Note that while working with command-line Git, you'll have to take care of either authenticating with your username and password or setting up SSH, and you'll have to make sure (or your chosen installer will) that Git is in your PATH. GitHub Desktop abstracts those facets for you.

1
  • To echo @David Reed it sounds like you just have Git desktop installed but not git itself. f you type git -- version from your command line you will get the version currently installed. Commented Jun 29, 2019 at 17:17

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .