0
点赞
收藏
分享

微信扫一扫

【colab】colab连接github

绣文字 2022-04-13 阅读 133
github

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 条评论