Share via

azure recertification training module exercise doesn't work

Marcus Wilson 0 Reputation points
2025-04-22T09:30:17.2966667+00:00

https://learn.microsoft.com/en-us/training/modules/intro-to-containers/5-exercise-create-custom-docker-image

The given command doesn't work git clone https://github.com/MicrosoftDocs/mslearn-hotel-reservation-system.git

this returns "git" is not recognized as an internal or external command

This question is related to the following Learning Module

Azure | Azure Training
0 comments No comments

2 answers

Sort by: Most helpful
  1. TP 157.6K Reputation points Volunteer Moderator
    2025-04-22T10:23:11.73+00:00

    Hi Marcus,

    The exercise requires that Git be downloaded/installed on your local PC. This is mentioned in the Prerequisites section of the Introduction unit.

    User's image

    If you haven't already, please download and install Git on your local PC, close any command prompt windows that may be open, and then try the exercise again. If you still get an error please add a comment below with your local PC operating system (version and any relevant details.

    Please click Accept Answer and upvote if the above was helpful.

    Thanks.

    -TP

    Was this answer helpful?

    0 comments No comments

  2. kguntaka 6,850 Reputation points Microsoft External Staff
    2025-04-22T10:03:47.1533333+00:00

    Hi Marcus Wilson,

    Appreciate your query over the Microsoft Q&A platform.

    This problem is likely due to Git not being installed on your machine. Here is how to solve it:

    1. Check if Git is installed:

    In the case that you have none, you can get Git from there and install it.

    1. Verify the installation:

    Launch Command Prompt (Windows) / Terminal (Mac/Linux).

    Type in git --version and hit Enter.

    A version number means Git is installed and there might be a problem with your system path.

    In case you see the error message you stated, Git is not installed.

    1. Clone the repository:

    Look for the directory that should contain the cloned repository and execute the command.

    The folder you have cloned should show up in your local directory.

    1. Try running as Administrator:

    In case all else fails, open Git with the option "Run as Administrator" and paste the command that you have from the MS Learn documentation.

    1. Folder Name:

    Once you have cloned, there should be a directory called “mslearn-hotel-reservation-system” which should be available in the cloned area.

    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    Was this answer helpful?


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.