git st无法运行命令'st':结果太大

时间:2015-11-28 18:26:41

标签: git

我还没有设置我的git别名,但在这之前不小心跑了git st。我明白了:

$ git st
Failed to run command 'st': Result too large

发生了什么事?

为了记录,git status运行良好。在我弄清楚这个问题是什么之前,我不想为状态设置git别名st

1 个答案:

答案 0 :(得分:0)

通过设置GIT_TRACE环境变量来调试它。这就是我得到的:

$ GIT_TRACE=1 git st
12:21:45.322173 git.c:560               trace: exec: 'git-st'
12:21:45.322898 run-command.c:335       trace: run_command: 'git-st'
git: 'st' is not a git command. See 'git --help'.

所以,我们知道它正在尝试执行git-st;我的猜测是你在$ PATH中有git-st个可执行文件?

相关问题