【colab】colab连接github

绣文字

关注

阅读 133

2022-04-13

colab连接github

  1. 在colab上生成你的ssh-key
!ssh-keygen -t rsa -b 4096 -C "email@example.com"
  1. 查看生成的ssh-key,并将它复制到github的ssh key中 链接
!cat /root/.ssh/id_rsa.pub
  1. 设置git的用户名和密码
!git config --global user.name "your name"
!git config --global user.email "email@example.com"
  1. 增加host
!ssh-keyscan github.com >> "/root/.ssh/known_hosts"

精彩评论(0)

0 0 举报