【问题标题】:Git: man command don't workGit:man 命令不起作用
【发布时间】:2018-12-18 03:12:40
【问题描述】:

在 Git Bash 中,他们给了我一个 error 以返回 "man" 命令

$ man git
bash: man: command not found

我的 Git 版本:

$ git --version
git version 2.18.0.windows.1

【问题讨论】:

  • 欢迎来到Stack Overflow。请获取该站点的tour,阅读How to Ask 以及如何创建minimal reproducible example。然后回到您的问题并重新制定它(最好使用代码示例、提供的输入和预期的输出)以获得(有用的)答案。在发布问题之前,search 该网站并确保尚未回答类似的问题。另请注意,即使“一张图片值一千字”,最好将文本和代码发布为文本(使用您的操作系统的复制粘贴功能)而不是包含文本的图像。
  • man 命令在 Windows 上不可用,即使您使用的是 Git Bash。
  • @Liam 好的,我是新来的 ;-)

标签: git windows-10


【解决方案1】:

Git for Windows 包(又名 Git Bash)不包含 Unix man 命令,但您不需要它。

您可以通过运行 git help <command-name>(例如,git help checkout)来获取任何 Git 命令的帮助。

此外,您还可以通过https://git-scm.com/docs 在线阅读帮助。

【讨论】:

    【解决方案2】:

    在 git bash 上你可以使用 Command-name --help insted of the ma​​n command-name

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2014-09-28
      • 2023-04-08
      • 2018-11-14
      • 2012-08-27
      • 2014-11-25
      • 2016-12-11
      • 2018-02-25
      • 2014-10-31
      相关资源
      最近更新 更多