Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/git/25.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/clojure/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
缓存Github密码_Git_Github - Fatal编程技术网

缓存Github密码

缓存Github密码,git,github,Git,Github,我试图在Git中缓存我的GitHub密码,但当我运行命令时 "git credential-osxkeychain" 我得到了错误 "fatal: cannot exec 'git-credential-osxkeychain': Permission denied". 运行后: chmod 755 `which git-credential-osxkeychain` 我得到: usage: chmod [-fhv] [-R [-H | -L | -P]] [-a | +a | =a

我试图在Git中缓存我的GitHub密码,但当我运行命令时

 "git credential-osxkeychain" 
我得到了错误

"fatal: cannot exec 'git-credential-osxkeychain': Permission denied".
运行后:

chmod 755 `which git-credential-osxkeychain`
我得到:

usage:  chmod [-fhv] [-R [-H | -L | -P]] [-a | +a | =a  [i][# [ n]]] mode|entry file ...
chmod [-fhv] [-R [-H | -L | -P]] [-E | -C | -N | -i | -I] file ...

您需要授予可执行凭证osxkeychain的权限:

chmod 755 `which git-credential-osxkeychain`

在运行chmod 755之后,我仍然被拒绝了权限哪个git凭据osxkeychain运行chmod命令时出错了?另外-请注意,您需要在git凭证osxkeychain周围加上反标记