我正在尝试将 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/