网站访问次数受限,宝安西乡做网站,前端开发工程师招聘,网站建设 整改报告环境配置
设置用户签名
配置用户名#xff1a; git config --global user.name 你的用户名 配置邮箱#xff1a; git config --global user.email 注册的邮箱
配置好之后#xff0c;可以用git config --global --list命令查看配置是否OK
$ git config --global --list
u…环境配置
设置用户签名
配置用户名 git config --global user.name 你的用户名 配置邮箱 git config --global user.email 注册的邮箱
配置好之后可以用git config --global --list命令查看配置是否OK
$ git config --global --list
user.namexxx
user.emailxxx163.com
设置sshKey
生成新的rsa密钥ssh-keygen -t rsa -C ‘注册GitHub的邮箱’
ssh-keygen -t rsa -C xxx163.com一直回车就可以即不设置密码。
$ ssh-keygen -t rsa -C xxx163.com
Generating public/private rsa key pair.
Enter file in which to save the key (/home/king/.ssh/id_rsa):
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /home/king/.ssh/id_rsa
Your public key has been saved in /home/king/.ssh/id_rsa.pub
The key fingerprint is:
SHA256:nyyy xxx163.com
The keys randomart image is:
---[RSA 3072]----
| .*.. |
| o o |
| * o . |
| o . o.. . |
| o * . S o |
|. X o o |
| .. * |
|..o . o E |
|.o . |
----[SHA256]-----
此时已经生成了ssh ras的密钥
$ ls $HOME/.ssh
authorized_keys id_rsa id_rsa.pub known_hosts设置github的SSH key 将上面生成的ssh公钥复制进去。