git - 在 git 中使用 osx 钥匙串(keychain)

标签 git terminal keychain

我正在尝试将 osx 钥匙串(keychain)与 git 一起使用,但是当我输入时

sudo mv git-credential-osxkeychain /usr/local/bin

然后我的密码出现错误:mv: git-credential-osxkeychain: No such file or directory

我的 git 安装位于/usr/local/bin/git

我正在使用 Mac OSX Mountain Lion。

最佳答案

我发现针对这种情况的最佳技巧之一是使用 locate,这是一个非常强大的命令。在此示例中,locate git-credential-osxkeychain 会生成几条路径,向您准确显示查找位置。

此外,您还可以使用其他有趣的 CLI 工具,例如将定位结果管道传输到 grep 以优化搜索:locate git-credential-osxkeychain | grep/usr

关于git - 在 git 中使用 osx 钥匙串(keychain),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13056247/

相关文章:

iphone - 在 Xcode 中使用非默认钥匙串(keychain)

ios - 重新下载 iOS 开发证书

iOS 钥匙串(keychain)值无

git - 如何在 WSL(Windows 上的 Ubuntu)上使用 Git 凭据存储?

git - git 的 Xcode 错误?

xcode - "pod init"给出错误 "-bash: pod: command not found"

macos - 如何在 Cocoa 应用程序中获取 "continous"终端执行输出?

gitolite + cgit : No repositories found

git - 无法使用 Hudson + Git + Maven Release Plugin 获得自动发布

bash - bash -s 有什么作用?