美文网首页
2020-06-19解决source每次拉代码都需要输入密码

2020-06-19解决source每次拉代码都需要输入密码

作者: 皓月之心 | 来源:发表于2020-06-19 20:44 被阅读0次

在.git目录中有个config目录,在路径前配置下用户名和密码即可

[core]

    repositoryformatversion = 0

    filemode = true

    bare = false

    logallrefupdates = true

    ignorecase = true

    precomposeunicode = true

[remote "origin"]

    url = http://帐号:密码@url.git

    fetch = +refs/heads/*:refs/remotes/origin/*

相关文章

网友评论

      本文标题:2020-06-19解决source每次拉代码都需要输入密码

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