# [Feature request] help.autocorrect suggestion with Y/N

2 messages from 2015-09-08 to 2015-09-08. Participants: rubenkram@spacetrace.org, Jeff King.
Thread: https://gitlist.dev/t/40299

## rubenkram@spacetrace.org, 2015-09-08 08:11

Subject: [Feature request] help.autocorrect suggestion with Y/N
Message-ID: <55EE9828.106@spacetrace.org>
URL: https://gitlist.dev/e/55EE9828.106%40spacetrace.org

```
When you type

 git clone https://repo.git

now you get

 git: 'glone' is not a git command. See 'git --help'.

 Did you mean this?
	clone

It would be handsome if you could say "Yes" to this question so you
don't have to manually correct your last command like:

 Did you mean this?
        clone
 [Y/n]

```

## Jeff King, 2015-09-08 08:40

Subject: Re: [Feature request] help.autocorrect suggestion with Y/N
Message-ID: <20150908084035.GC2991@sigill.intra.peff.net>
URL: https://gitlist.dev/e/20150908084035.GC2991%40sigill.intra.peff.net
In-Reply-To: <55EE9828.106@spacetrace.org>

```
On Tue, Sep 08, 2015 at 10:11:20AM +0200, rubenkram@spacetrace.org wrote:

>  git: 'glone' is not a git command. See 'git --help'.
> 
>  Did you mean this?
> 	clone
> 
> It would be handsome if you could say "Yes" to this question so you
> don't have to manually correct your last command like:
> 
>  Did you mean this?
>         clone
>  [Y/n]

There is currently no way to ask, but you might want to check out
help.autoCorrect:

  $ git config --global help.autoCorrect 10
  $ git glone ...
  WARNING: You called a Git command named 'gclone', which does not exist.
  Continuing under the assumption that you meant 'clone'
  in 1.0 seconds automatically...

You can set it to "-1" if you want no delay at all.

If you (or someone) wanted to add an interactive version, it would
probably make sense to trigger it by setting help.autoCorrect to "ask".

-Peff

```
