首页 > 其他 > 详细

Git免密码提交

时间:2018-08-09 13:18:28      阅读:136      评论:0      收藏:0      [点我收藏+]

下面说一下https克隆的方式免密码提交

在我们下载链接前面加上账号:密码@即可

方式一:

  • 使用https的方式克隆代码

    git clone ‘地址‘

  • 查看项目中的配置文件

    vim .git/config

    [core] repositoryformatversion = 0 filemode = true bare = false logallrefupdates = true ignorecase = true precomposeunicode = true [remote “origin”] url = https://github.com/地址 fetch = +refs/heads/:refs/remotes/origin/ [branch “master”] remote = origin merge = refs/heads/master

  • 修改remote中的url那行如下

    url = https://账号:密码@github.com/地址 

    方式二:

    技术分享图片技术分享图片

    技术分享图片

     

Git免密码提交

原文:https://www.cnblogs.com/weibanggang/p/9447997.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!