git 初使用



$ git clone [email protected]:jhao104/django-blog.git
Cloning into 'django-blog'...
Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

Mr.Black@DESKTOP-4Q3FM6F MINGW64 /e/GitHub
$ ssh-keygen -t rsa -C "Interesting6"
Generating public/private rsa key pair.
Enter file in which to save the key (/c/Users/Mr.Black/.ssh/id_rsa):
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /c/Users/Mr.Black/.ssh/id_rsa.
Your public key has been saved in /c/Users/Mr.Black/.ssh/id_rsa.pub.
The key fingerprint is:
SHA256:GQdNQU5sbQfUm/q4l3BfifnJEYEZ9d1Bo4yTN8gKpDI Interesting6
The key's randomart image is:
+---[RSA 2048]----+
|       ..==+o+*= |
|      o  += Bo+.*|
|   E . ...oB * o=|
|    o   .+. o +. |
|        S.   .o o|
|            oo.o.|
|             =oo+|
|            . ++.|
|            .o   |
+----[SHA256]-----+

但发现。。。还是这样。。。

原来问题出在,我是clone别人的项目,所以不能用ssh......

得用https

git 初使用_第1张图片

这个是他自己的博客,所以用的是ssh,我们(别人)得用 http

git 初使用_第2张图片

git 初使用_第3张图片

另:wget是Linux下的一个下载的命令。





你可能感兴趣的:(Git)