本文介绍了我怎样才能让git做到“你的意思是”建议?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我输入
git puhs
和git说:
pre code $ kristian @ office:〜/ myrepo $ git puhs
git:'puhs'不是git命令。请参阅'git --help'
您的意思是?
push
什么是配置设置让git仅仅执行建议的命令有一个建议?根据,您需要适当地设置 help.autocorrect
。例如, git config --global help.autocorrect 5
会在运行该命令之前等待半秒,以便您可以首先看到消息。
I type
git puhs
And git says:
kristian@office:~/myrepo$ git puhs
git: 'puhs' is not a git command. See 'git --help'
Did you mean this?
push
What is the config setting to make git just do the suggested command if it only has one suggestion ?
解决方案
According to git-config(1), you want to set help.autocorrect
appropriately. For example, git config --global help.autocorrect 5
will make it wait half a second before running the command so you can see the message first.
这篇关于我怎样才能让git做到“你的意思是”建议?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!