首页 > 解决方案 > 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)

请帮助我该怎么办?我在这里和互联网上搜索过,但大多数都是针对工作目录或主目录的。如果我能了解如何更改文档目录,那将非常有帮助。我最近开始编程。

感谢您的时间和努力。

标签: windowsgitgit-bash

解决方案


它基本上是想告诉您文档没有安装在它认为的位置。

你可以很容易地在网上找到它;https://git-scm.com/docs/git-mktree

如果您在本地安装了 HTML 文档文件C:\whatever,请尝试

git config --global help.htmlPath C:\whatever

推荐阅读