How to Clone with SSH GitHub
There are multiple ways to clone a Git repo. You can use HTTPS, the GitHub CLI, or the most popular option: SSH. Follow these steps to clone a repo using SSH. Ensure you already have an SSH key and personal access token set up with GitHub.
Tyler Harz
|
8 steps
|
25 seconds
1
Navigate to the repository you want to clone.
2
Click on the green button marked "Code."
3
Select SSH from the available options and click the copy button to copy the key to your clipboard.
4
With your Terminal or command prompt open, navigate to the path where you want your Git repo to clone into.
5
Type "git clone "
6
Press [[Cmd]] + [[v]] to paste in your key.
7
Press [[Enter]]
8
Your computer will ask for your password. Once you input your password and hit enter, Git will clone the repository to your computer.