Git hub的使用 (一)
配置 sshkey
cd / 根目录
*生成key:ssh-keygen -t rsa -C “邮箱地址”
*cd ~/.ssh(用户目录下的.ssh文件夹)
pwd
cat id_rsa_.pub
*复制id_rsa.pub的公钥内容到github官网中 settings >SSH and GPG keys >New SSH Key
配置多个 sshkey
*cd ~/.ssh(用户目录下的.ssh文件夹)
*vim config
* 添加Host/HostName/User/IdentityFile 四项
host:github.com
HostName:github.com
User:git用户名
IdentityFile:id_rsa
相关推荐
projava 2020-11-14
WanKaShing 2020-11-12
airfish000 2020-09-11
tryfind 2020-09-14
yegen00 2020-09-10
kkaazz 2020-09-03
风语者 2020-09-02
BraveWangDev 2020-08-19
lichuanlong00 2020-08-15
gsl 2020-08-15
pandaphinex 2020-08-09
yhuihon 2020-08-09
CheNorton 2020-08-02
xiangqiao 2020-07-28
hpujsj 2020-07-26
hpujsj 2020-07-26
sshong 2020-07-19
BraveWangDev 2020-07-19
annan 2020-07-18