Git免密码提交

下面说一下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免密码提交Git免密码提交

    Git免密码提交

     

posted @ 2018-08-09 11:47 韦邦杠 阅读(...) 评论(...) 编辑 收藏

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-08-02
  • 2022-12-23
  • 2022-12-23
  • 2021-07-25
  • 2021-08-24
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-11-25
  • 2021-10-28
  • 2021-06-22
  • 2021-08-11
相关资源
相似解决方案