Cannot clone the Magento GitHub repository

Last update: 2023-07-27
  • Created for:
  • Developer

This article provides a fix for when you can’t clone the Magento GitHub repository.

Detail

Error is similar to the following:

Cloning into 'magento2'...
Permission denied (publickey).
fatal: The remote end hung up unexpectedly

Solution

Upload your SSH key to GitHub as discussed in the GitHub help page .

On this page