- r - 以节省内存的方式增长 data.frame
- ruby-on-rails - ruby/ruby on rails 内存泄漏检测
- android - 无法解析导入android.support.v7.app
- UNIX 域套接字与共享内存(映射文件)
我需要禁用 OS X 的凭证助手:git credential-osxkeychain
它在全局配置文件和本地配置文件中都被禁用,事实上它从不被启用。尽管如此,它仍然会记住我的 github 登录详细信息。
我在笔记本电脑上,所以我不想自动无密码访问我的存储库。
我将使用 ssh key 。这是一台新电脑,整个系统设置仍在进行中。
现在我使用了 https
repo refs,凭证助手一直在运行。
这些是我的配置文件:
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/deploy
git 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 X 钥匙串(keychain)中的条目。
我可以删除它,然后 git 会再次要求输入密码...但是只要我输入它(比方说,对于 git fetch
),条目在钥匙串(keychain)中恢复。
最佳答案
为了帮助追踪设置,我会尝试使用:
git config --local credential.helper
git config --global credential.helper
git config --system credential.helper
第一个检查本地 repo 配置,第二个是你的 ~/.gitconfig
,第三个是基于 git 的安装位置。根据返回的显示凭据帮助程序的人,您可以尝试使用等效的 --unset
选项:
git config --local --unset credential.helper
git config --global --unset credential.helper
git config --system --unset credential.helper
如果您没有适当的权限,最后一个可能无法工作。因此,您可能需要在 sudo
下运行最后一个才能使其正常工作。 FWIW,您可能已经为 Mac OS X 安装了预构建的 git 镜像。如果您 cat /usr/local/git/etc/gitconfig
(或 /usr/local/etc/gitconfig
如果你通过 Homebrew 或本地建筑安装了 git),你会看到它确实为你设置了凭证助手。所以上面的最后一个命令将有助于解决这个问题。
关于git - 如何在 git 配置中禁用 osxkeychain 作为凭证助手?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16052602/
有没有办法测试人工凭证以及我是否可以成功访问存储库?从命令行运行我无法查看是否使用了凭据以及来自带有 ?trace 的浏览器附加到 url 拒绝匿名用户访问。 最佳答案 您可以使用 Artifacto
我正在尝试运行将使用 npm publish 的 Jenkins 2 管道(Jenkinsfile)将包发布到本地 NPM 存储库。 为了做到这一点,我尝试在 Jenkinsfile 中使用以下阶段:
我正试图从我的 JavaScript 前端应用程序的 S3 中获取我的图像对象。 根据文档,这些是所需的步骤: import * as AWS from "aws-sdk"; AWS.config.u
我正在使用 IVONA SpeachCloud SDK(创建语音样本):https://github.com/IvonaSoftware/ivona-speechcloud-sdk-java/blob
我有一个问题:ACAccountStore 是否会自动更新 Twitter token ?我需要在我的服务器中使用 token 来自动发布。请分享您的经验。 最佳答案 如果您像这样使用 SLReque
我正在为为 CMS 创建的商店/购物车创建一个 PayPal 网关。完成后,网关将可供其他人使用。在我的开发者帐户中创建的 API 凭据(客户端 ID 和 secret )是否保留在应用程序中,还是每
我在 Magnto 1.9 中启用了 paypal 现在我想在我的 Observer 中调用另一个 paypal API,为此我需要 paypal 用户、密码和签名,我在启用 paypal 时已经保存
有没有办法用 TortoiseGit 保存 GITHUB 的用户凭证? 每当我进行推/pull 时,它都会提示我以下对话框。 我想将我的用户凭据信息保存在某个地方,就像我使用 TortoiseSVN
我有一个 Jenkins 工作,它应该构建一个 Jar 并将其添加到 Nexus。我已经配置了构建后操作以将 Maven Artifact 部署到 nexus 存储库。 问题是,nexus 需要用户名
在我之前的 Jenkinsfile 中,我曾经有过这个: withCredentials([[ $class: 'AmazonWebServicesCredentialsBinding',
我的证书有问题,我什至不确定我是否选择了正确的方法...长话短说..我需要我的 Jenkins 工作在构建过程中从需要使用证书身份验证的网站下载一些东西 - 我得到了 .p12 和 .cert 证书。
我在使用 WWW:Mechanize 的凭据代理访问和网络抓取需要 NTLM 身份验证的站点时遇到问题。我在网上读到凭证代理需要 4 个参数:基址、领域、用户名和密码。我不确定用于基础或领域的内容,因
我正在使用 AWS Java SDK 并尝试运行一些测试;得到: 无法从类路径上的/AwsCredentials.properties 文件加载 AWS 凭证 根据 AWS 规范,凭证文件 @ ~/.
我已将我的 MongoDB 设置为仅接受通过 SSL 的连接。 Mongo 具有我使用以下命令生成的证书的句柄 openssl req -newkey rsa:2048 -new -x509 -day
如何让 gspread 使用我的 oauth 凭据?我的 http 响应 gspread.httpsession.HTTPError 出现错误:(谁能告诉我我的代码有什么问题吗? import dat
我有一大桶 S3 文件要放在 HDFS 上。考虑到涉及的文件数量,我首选的解决方案是使用“分布式副本”。但是由于某种原因,我无法让 hadoop distcp 获取我的 Amazon S3 凭据。我使
我在 Magnto 1.9 中启用了 paypal现在我想在我的 Observer 中调用另一个 paypal API,为此我需要 paypal 用户、密码和签名,我在启用 paypal 时已经保存了
作为构建 docker 容器的过程的一部分,我需要从 s3 存储桶中提取一些文件,但我不断收到 fatal error: Unable to locate credentials 即使现在我正在设置凭
应用 Spring 中的简单 REST API 注册服务,在发送正确的 POST 请求后在数据库中创建新用户,并且 Amazon SES 发送一封包含注册链接的电子邮件以进行验证。 问题 在我的操作系
背景 我使用 google-api-python-client django_sample 获得了 Google API 的 access_token . 为了离线访问,我添加了 FLOW.param
我是一名优秀的程序员,十分优秀!