Skip to content

工作电脑如何和GITHUB建立连接

上级

base
views:
  - type: table
    name: 关联文件表
    filters:
      and:
        - layer_id == this.parent_id  
        - parent_id != null   
        - layer_id != null

工作内容

base
views:
  - type: cards
    name: 视图
    cardSize: 200
    image: note.title
    filters:
      and:
        - parent_id == this.layer_id
        - parent_id != null
    order:
      - title
    sort:
      - property: priority
        direction: ASC
      - property: layer_id
        direction: ASC
#临时修改一下用户名和邮箱
git config --global user.email "lluo2020@163.com"
git config --global user.name "Lluo-liang"

查看用户名 :git config user.name
查看邮箱:git config user.email

#注意后面切换回去
git config --global user.email "felixwu@sheinbpo.com"
git config --global user.name "felixwu"


#生成个人密钥
ssh-keygen -t rsa -f ~/.ssh/id_rsa_personal -C "lluo2020@163.com"

#添加SSH配置
touch ~/.ssh/config nano ~/.ssh/config
文件内容
Host github.com
  HostName github.com
  User git
  IdentityFile ~/.ssh/id_rsa_personal

#将生成的SSH配置放入到  GITHUb  ADD SSH KEY

#测试连接
ssh -T git@github.com

#可以了