Cannot clone the Magento GitHub repository

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

Detail detail

Error is similar to the following:

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

Solution solution

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

recommendation-more-help
8bd06ef0-b3d5-4137-b74e-d7b00485808a