标签:rebase gen bash comm 生成 之间 can sts add
右键–>Git Bash Here:先输入ssh-keygen –t rsa –C "邮箱地址",注意ssh-keygen之间是没有空格的,其他的之间是有空格的,邮箱地址是咱们在注册GitHub的时候用的邮箱。
生成的密钥在这里:C:\Users\Administrator\.ssh
右上头像箭头->Settings->左侧SSH and GPG keys,New SSH key,粘贴,Add GPG key
Administrator@FEZLIN8TDST7KOF MINGW64 /githere
$ ssh -T 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.
Hi Xiaobai0419! You‘ve successfully authenticated, but GitHub does not provide shell access.
Administrator@FEZLIN8TDST7KOF MINGW64 /githere
$ ssh -T git@github.com
Hi Xiaobai0419! You‘ve successfully authenticated, but GitHub does not provide shell access.
$ git init
$ git add .
$ git commit -m ‘dubbo first commit‘
$ git remote add origin https://github.com/Xiaobai0419/minexiaobai0419.git
$ git push -u origin master
Username for ‘https://github.com‘: Xiaobai0419
需要输入GitHub注册的用户名、密码后确认
$ git pull --rebase origin master
标签:rebase gen bash comm 生成 之间 can sts add
原文地址:https://www.cnblogs.com/free-wings/p/9715280.html