码迷,mamicode.com
首页 > 其他好文 > 详细

git

时间:2018-06-09 22:12:05      阅读:227      评论:0      收藏:0      [点我收藏+]

标签:phrase   evm   TE   channel   pair   ant   direct   mail   sha   


Lee@Lee MINGW64 ~
$ git config --global user.name "lspshun"

Lee@Lee MINGW64 ~
$ git config --global user.email "lspshun@163.com"

Lee@Lee MINGW64 ~
$ cd ~/.ssh
bash: cd: /c/Users/Lee/.ssh: No such file or directory

Lee@Lee MINGW64 ~
$ ssh-keygen -t rsa -C "lspshun@163.com"
Generating public/private rsa key pair.
Enter file in which to save the key (/c/Users/Lee/.ssh/id_rsa):
Created directory ‘/c/Users/Lee/.ssh‘.
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /c/Users/Lee/.ssh/id_rsa.
Your public key has been saved in /c/Users/Lee/.ssh/id_rsa.pub.
The key fingerprint is:
SHA256:1xC3F7geVM4IvM8aHIRpyL17fdgngv+Y4wnQRJHy5A0 lspshun@163.com
The key‘s randomart image is:
+---[RSA 2048]----+
| . o +=o.oo |
| o *.E+o= . |
| . Bo=o.+ |
| .o=o+. |
| SooB.+ |
| .o= B + .|
| ..+ o o |
| ..o+ |
| .=o. |
+----[SHA256]-----+

Lee@Lee MINGW64 ~
$ ssh git@github.com
The authenticity of host ‘github.com (13.250.177.223)‘ can‘t be established.
RSA key fingerprint is SHA256:nThbg6kXUpJWGl7E1IGOCspRomTxdCARLviKw6E5SY8.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added ‘github.com,13.250.177.223‘ (RSA) to the list of known hosts.
PTY allocation request failed on channel 0
Hi lspshun! You‘ve successfully authenticated, but GitHub does not provide shell access.
Connection to github.com closed.

Lee@Lee MINGW64 ~
$ git clone git@github.com:billyanyteen/github-services.git
Cloning into ‘github-services‘...
Warning: Permanently added the RSA host key for IP address ‘13.229.188.59‘ to the list of known hosts.
ERROR: Repository not found.
fatal: Could not read from remote repository.

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

Lee@Lee MINGW64 ~
$ git init
Initialized empty Git repository in C:/Users/Lee/.git/

 

git

标签:phrase   evm   TE   channel   pair   ant   direct   mail   sha   

原文地址:https://www.cnblogs.com/lspshun163/p/9160865.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!