LoginSignup
1
0

Gitコマンドを毎回入力するのがめんどくさい.
コマンドに別名(エイリアス)を設定しておくことで,入力を少しだけ楽にすることができる.
少しだけだけど...

$ # エイリアスの設定は,git config --global alias.<別名> <Gitコマンド>

$ git config --global alias.co checkout
$ git config --global alias.br branch
$ git config --global alias.ci commit
$ git config --global alias.st status
$ git config --global alias.unstage 'reset HEAD --'    # ステージを解除
$ git config --global alias.last 'log -1 HEAD'    # 直前のコミットを確認

# 外部コマンドを実行するときは,$ git config --global alias.visual '!<外部コマンド>'
$ git config --global alias.visual '!gitk'
参考

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