LoginSignup
0
0

More than 1 year has passed since last update.

【Git】コマンドにエイリアスを付ける

Posted at

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」を割り当てる

git configは設定を変更するためのコマンド
--globalのオプションを指定すると該当ユーザの全リポジトリがたいしょうはんいとなる

0
0
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
0
0