15
11

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 (checkout | branch | status)の代わりに git (co | br | st)を使って開発速度を2倍にしよう

Last updated at Posted at 2018-04-03

株式会社Udzukiの@tsukakeiです.
普段はテスト自動化やWebアプリの開発を行っております.

TL;DR

gitコマンドのエイリアスを設定して,
$ git (checkout | branch | status)
の代わりに
$ git (co | br | st)
を使いましょう!

やり方

~/.gitconfig に以下の内容を書き込むだけ!

[alias]
  co = checkout
  br = branch
  st = status

たったこれだけでタイピング文字が 40-50% 削減できます!!

command beforeの文字数 afterの文字数
checkout 12文字(git checkout) 6文字(git co)
branch 10文字(git branch) 6文字(git br)
status 10文字(git status) 6文字(git st)

この記事を見たら今すぐにでもエイリアスの設定をしましょう!!

参考

gitで便利なエイリアス達

15
11
1

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
15
11

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?