Skip to content
ztechenbo edited this page May 25, 2018 · 2 revisions

本地已有仓库与远程仓库关联的方法

1.以https的方式连接

2.已ssh的方式连接

  • 首先需要生成密钥 ssh-keygen -t rsa -C "ztechenbo"
  • 再需要将密钥加入到github中来
  • git remote add origin git@github.com:ztechenbo/learnssh.git
  • git push -u origin master

Clone this wiki locally