在使用git: 'credential-gcloud.sh' is not a git command. See 'git --help'.
2016-08-04 07:44:06.598 GitHub Desktop Login[809:15686] AskPass with arguments: (
"/Applications/GitHub Desktop.app/Contents/MacOS/GitHub Desktop Login",
"Username for 'https://source.developers.google.com': "
)
2016-08-04 07:44:06.645 GitHub Desktop Login[809:15686] Error getting keychain item for source.developers.google.com: The specified item could not be found in the keychain.
error: unable to read askpass response from '/Applications/GitHub Desktop.app/Contents/MacOS/GitHub Desktop Login'
fatal: could not read Username for 'https://source.developers.google.com': Device not configured
(128)
克隆的GitHub Desktop中同步存储库时,Mac OS X 10.11(El Capitan)上会出现以下错误:
array_walk($ararray_walk($arr, function(&$v, $k) { // Pass the values by reference
if(array_key_exists('images', $v)){
unset($v['images']);
}
});
print_r($arr);
答案 0 :(得分:0)
原因是在PATH上找不到与gcloud SDK一起提供的凭证助手git-credential-gcloud.sh。
幸运的是,git不仅可以从PATH调用和检测凭据帮助程序,还可以在指定完整路径时接受并调用命令。
从以下位置更改credential.helper:
credential.helper="gcloud.sh"
为:
credential.helper=/<PATH-TO-GCLOUD-SDK>/bin/git-credential-gcloud.sh
通过调用
git config credential.helper /<PATH-TO-GCLOUD-SDK>/bin/git-credential-gcloud.sh
解决了特定存储库的问题。