..

Configuring GitHub CLI to clone with SSH

Updated on Tue Dec 01 2020

By default, gh repo clone uses HTTPS. To configure gh to clone with SSH, run the following command:

gh config set git_protocol ssh

Thanks for the tip, @ampinsk!

Edit on GitHub Admin