2
1

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 3 years have passed since last update.

【Git】Gitコマンドを短く入力しよう

Last updated at Posted at 2021-02-10

はじめに

チーム開発では欠かせないGit。
gitコマンドはたくさんあるが、特によく使うコマンドというものがあると思う。
例えば、git statusとかgit commitとか。
こういうものをもっと短く入力するための設定をまとめておく。

gitコマンドにエイリアスをつける

$ git config --global alias.ci commit
commitをciに短縮

$ git config --global alias.st status
statusをstに短縮

$ git config --global alias.br branch
branchをbrに短縮

$ git config --global alias.co checkout
checkoutをcoと短縮

便利なのでぜひ。

2
1
0

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
2
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?