美文网首页
git使用ssh或者http方式pull和push代码

git使用ssh或者http方式pull和push代码

作者: hahaJava | 来源:发表于2018-12-15 18:29 被阅读0次

切换成http方式:
git remote set-url origin http://git.haohuoduo.cn/haohuoduo/android.git

切换成ssh方式:

git remote set-url origin git@git.haohuoduo.cn:haohuoduo/android.git

使用ssh方式的前提是必须生成ssh key并在gitlab上添加,具体操作看git提交大文件的文章

相关文章

网友评论

      本文标题:git使用ssh或者http方式pull和push代码

      本文链接:https://www.haomeiwen.com/subject/dqgahqtx.html