LoginSignup
0
0

More than 5 years have passed since last update.

gitコマンドのエイリアス設定

Posted at

Why

gitのコマンドオプションの入力を楽にしたい

How

~/.gitconfigにaliasを記述する

条件

  • ユーザ単位で設定
  • パソコン共通、リポジトリ単位での設定方法については割愛

.gitconfigの中身

[alias]
 st = status
 co = commit
  b = branch
  loga = log --graph --oneline --decorate=full -20 --date=short --format='%C(yellow)%h%C(reset) %C(magenta)[%ad]%C(reset)%C(auto)%d%C(reset) %s %C(cyan)@%an%C(reset)'
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