【发布时间】:2016-02-13 19:37:20
【问题描述】:
我创建了一个小的可执行文件(git-test)并将其放在C:\Program Files\Git\usr\bin 路径下。
我还在Path 环境变量中添加了上述路径。当我在 bash 上运行 git test 时,出现以下错误。
git: 'test' is not a git command. See 'git --help'
我在这里或需要粘贴文件的任何地方缺少什么。
【问题讨论】:
-
如果你添加'.exe'扩展?
-
这里没有“.exe”文件。我刚刚创建了一个名称模式为
git-<custom-name>的shell 脚本文件,并尝试使用git bash 访问它。 (就像 git flow 命令的工作方式)