我需要禁用OS的凭据助手:git credential-osxkeychain
它在全局配置文件和本地配置文件中都是禁用的,实际上它启用了从不 ben。尽管如此,它仍然会记住我的github登录细节。
我是在笔记本电脑上,所以我不想要自动无密码访问我的回复。
I将使用ssh键。这是一台新的计算机,整个系统的设置仍在进行中。
目前,我使用的是https回购推荐程序,而凭据助手一直在使用它。
这些是我的文件:
git config --edit =>
[core]
repositoryformatversion = 0
filemode = true
bare = false
logallrefupdates = true
ignorecase = true
precomposeunicode = false
[remote "origin"]
url = https://github.com/user/repo.git
fetch = +refs/heads/*:refs/remotes/origin/*
[branch "master"]
remote = origin
merge = refs/heads/master
[branch "develop"]
remote = origin
merge = refs/heads/develop
[branch "deploy"]
remote = origin
merge = refs/heads/deploygit config --global --edit =>
[user]
email = ****************
name = tom
[color]
ui = true
[core]
editor = subl -w
[github]
user = tompave
[merge]
conflictstyle = diff3
[push]
default = simple此外,运行git config --global credential.helper也不会返回任何内容(这是正确的)。
但是,运行git config credential.helper会返回osxkeychain!
这怎么可能呢?在本地配置文件中看不到它,它是在哪里设置的?
我试图在本地设置它,看看会发生什么,确实在repodir/.git/config中显示了。然后我删除了条目..。但是帮手还在这里而且很活跃。
我可以清楚地看到它在OS密钥链中的条目。
我可以删除它,然后git会再次询问密码.但是,一旦我输入它(比方说,对于一个git fetch),键链中的条目就会被恢复。
https://stackoverflow.com/questions/16052602
复制相似问题