75
72

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

gitで打ち間違えた時にも自動で正しいコマンドを予測し実行する

Posted at

gitで早くコマンドを打っていると、git statusと間違えて

$ git statsu
git: 'statsu' is not a git command. See 'git --help'.
Did you mean this?
	status

のように git statsuと入力してしまい、打ち直さなければいけなく、めんどくさいなあと皆さん思っていませんか?

そんなときにはhelp.autocorrectをonにするだけでstatsusttausのような微妙に間違ったコマンドを、statusとちゃんと解釈してくれます。
これのおかげで僕のgit力は1.5倍ぐらいになったので、みなさんも是非使って開発速度を少しでも高めましょう。

$ git config --global help.autocorrect 1
75
72
2

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
75
72

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?