windows - Git Bash 终端回复致命:“C:/....”:不是文档目录
问题描述
我在 Windows 上的 Git Bash 终端上输入了这个命令,我得到了这个:
Anurag Nihal@LAPTOP-DK8BSQJ5 MINGW64 ~/Desktop/first-project (master)
$ find .git/objects -type f
.git/objects/44/00aae52a27341314f423095846b1f215a7cf08
.git/objects/b7/aec520dec0a7516c18eb4c68b64ae1eb9b5a5e
(base)
Anurag Nihal@LAPTOP-DK8BSQJ5 MINGW64 ~/Desktop/first-project (master)
$ help git mktree
bash: help: no help topics match `mktree'. Try `help help' or `man -k
mktree' or `info mktree'.
(base)
Anurag Nihal@LAPTOP-DK8BSQJ5 MINGW64 ~/Desktop/first-project (master)
$ git mktree --help
fatal: 'C:/ProgramData/Anaconda3/Library/mingw64/share/doc/git-doc': not a
documentation directory.
(base)
Anurag Nihal@LAPTOP-DK8BSQJ5 MINGW64 ~/Desktop/first-project (master)
$ echo $HOME
/c/Users/Anurag Nihal
(base)
请帮助我该怎么办?我在这里和互联网上搜索过,但大多数都是针对工作目录或主目录的。如果我能了解如何更改文档目录,那将非常有帮助。我最近开始编程。
感谢您的时间和努力。
解决方案
它基本上是想告诉您文档没有安装在它认为的位置。
你可以很容易地在网上找到它;https://git-scm.com/docs/git-mktree
如果您在本地安装了 HTML 文档文件C:\whatever
,请尝试
git config --global help.htmlPath C:\whatever
推荐阅读
- python - 如何使用 python 规范化原始音频文件
- ionic-framework - Jarsigner 显示文件不存在的错误
- regex - 如何从节点参数数据框中去除变量
- javascript - Javascript自定义prng连续调用产生0
- unreal-engine4 - 如果我不延迟至少 0.5 秒,GetAllActorsWithTag 会失败吗?
- vba - 循环遍历 2 列以查找起点和终点以在另一列中插入公式
- neural-network - 引导式 Grad-CAM 可视化,梯度加权
- python - Django - UnboundLocalError
- java - Jolt 将带有数组的对象转换为单个数组
- ms-access - 将 MS 访问权限拆分到前端和后端,但后端位于另一台计算机中