ubuntu git利用ssh进行push(无需用户名&&密码)

来源:互联网 发布:手机淘宝改好评步骤 编辑:程序博客网 时间:2024/06/03 21:10

1.根据github官方文档生成ssh,将ssh加入ssh-agent并复制到github个人settings中

2.根据github官方文档 更改已有的Repositories的remote方式。

$git remote set-url origin git@github.com:USERNAME/OTHERREPOSITORY.git


0 0