Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/git/24.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/9/blackberry/2.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
Git 当我可以';找不到输出目标_Git - Fatal编程技术网

Git 当我可以';找不到输出目标

Git 当我可以';找不到输出目标,git,Git,我运行了git config credential.helper--help,现在每当我按下第一行时都是git:“credential--help”不是git命令。但我找不到该命令写入的位置。我的.gitconfig文件没有它。我没有/etc/gitconfig。我还可以在哪里查看?首先,cd进入发出错误命令时所在的目录。然后说 git config --list --show-origin 就像魔术一样,你的问题会得到回答。您将看到每个配置设置及其所在位置。首先,cd进入发出错误命令时所在的

我运行了
git config credential.helper--help
,现在每当我按下第一行时都是
git:“credential--help”不是git命令。
但我找不到该命令写入的位置。我的.gitconfig文件没有它。我没有/etc/gitconfig。我还可以在哪里查看?

首先,
cd
进入发出错误命令时所在的目录。然后说

git config --list --show-origin

就像魔术一样,你的问题会得到回答。您将看到每个配置设置及其所在位置。

首先,
cd
进入发出错误命令时所在的目录。然后说

git config --list --show-origin

就像魔术一样,你的问题会得到回答。您将看到每个配置设置及其所在位置。

尝试
git-config--显示源凭证.helper
。如果您的git太旧,无法支持
--显示源代码
,请搜索
.git/config
~/.gitconfig
。尝试
git config--显示源代码凭据.helper
。如果您的git太旧,无法支持
--显示源代码,请搜索
.git/config
~/.gitconfig
。否。这只是列出了my.gitconfig中的行,其中不包括
credential--help
任何地方。不,但它将列出
credential.helper
。这是真的。它显示了
credential.helper=store
的正确设置。您是否将
cd
放在发出错误命令开始时的同一位置?我将把它添加到答案中以防万一!有点关键,不。这只是列出了my.gitconfig中的行,其中不包括
credential--help
任何地方。不,但它将列出
credential.helper
。这是真的。它显示了
credential.helper=store
的正确设置。您是否将
cd
放在发出错误命令开始时的同一位置?我将把它添加到答案中以防万一!有点关键。