How can I make git do the “did you mean” suggestion?

前端 未结 4 820
被撕碎了的回忆
被撕碎了的回忆 2021-01-30 04:36

I type

git puhs

And git says:

kristian@office:~/myrepo$ git puhs
git: \'puhs\' is not a git command. See \'git --help\'

Did y         


        
4条回答
  •  梦谈多话
    2021-01-30 05:13

    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.

提交回复
热议问题