生成ssh key
git shell中输入命令 ssh-keygen -t rsa -C "hasherc@github.com"
提示:
Generating public/private rsa key pair. Enter file in which to save the key (/c/Users/91504/.ssh/id_rsa):
然后连着按仨回车。
Created directory '/c/Users/91504/.ssh'.
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /c/Users/91504/.ssh/id_rsa.
Your public key has been saved in /c/Users/91504/.ssh/id_rsa.pub.
The key fingerprint is:
SHA256:0Pfe3YEfjzXKmfVcjkJWPKsVUQZYg3ALfoUAf9Tp+6A hasherc@github.com
The key's randomart image is:
+---[RSA 2048]----+
| ..+oo**+o|
| . o +++o+ |
| . . + +.= |
| . . + .o+ |
| S +.o*o|
| +.+OBO|
| +*++B|
| E. .|
| |
+----[SHA256]-----+
然后就可以去提示的目录去寻找密钥了
rsa.pub是公钥,去github上粘贴吧~
github上多了个readme文件
所以就push不上去,也pull不下来,说要两端文件冲突才可以。
然后在push或pull后面加了个 -f 但是以前的文件会被完全覆盖掉,
完全把e