美文网首页
解决SourceTree不断提示输入密码问题

解决SourceTree不断提示输入密码问题

作者: Jany_4a9a | 来源:发表于2019-05-01 23:51 被阅读0次
timg.jpeg

1.第一个方法,在.git目录中有个config目录,在路径前配置下用户名和密码即可,如下所示:

[core]
    repositoryformatversion = 0
    filemode = false
    bare = false
    logallrefupdates = true
    symlinks = false
    ignorecase = true
[remote "origin"]
    url = http://账号:'密码'@192.168.10.7:8090/test/Django.git
    fetch = +refs/heads/*:refs/remotes/origin/*
[branch "master"]
    remote = origin
    merge = refs/heads/master

2.第二种方法,终端输入一下命令:

git config --global credential.helper osxkeychain

相关文章

网友评论

      本文标题:解决SourceTree不断提示输入密码问题

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