GitHub repo downloads
Published:
SSH & HTTPS of GitHub repo
GitHub repo downloads
HTTPS
Just copy the repo’s link and type it in the command line
git clone https://github.com/xxx/xxx.git
SSH
- Before the following, you can back-up your ssh key before.
- For windows users, go to
C:\users\xxx\.ssh\
, then inputcp id_rsa id_rsa.bak
andcp id_rsa.pub id_rsa.pub.bak
.
- For windows users, go to
Open the command line and input
ssh-keygen -t rsa -C xxx@xxx.com
Here xxx@xxx.com is your GitHub email account. Then press the
Enter
, and you will successfully create the public key.Open the GitHub, go to settings -> SSH -> new SSH key. Input the title (whatever, it doesn’t matter), and put all the contents in the
id_rsa.pub
into the box.- Then clone the repo by
git clone git@github.com:xxxx/xxx/.git
.