Skip to content

Instantly share code, notes, and snippets.

@kkotaro0111
Last active August 4, 2025 08:53
Show Gist options
  • Save kkotaro0111/3274105263e6de6ce967a0ebddd6adc8 to your computer and use it in GitHub Desktop.
Save kkotaro0111/3274105263e6de6ce967a0ebddd6adc8 to your computer and use it in GitHub Desktop.
git alias
[color]
ui = true
[core]
pager = less -r
autocrlf = input
filemode = false
quatepath = false
editor = '/usr/bin/vim'
precomposeunicode = true
[push]
default = tracking
[branch]
autosetuprebase = always
[pull]
rebase = true
[alias]
st = status
s = status --short --branch
b = branch -a
co = checkout
d = diff
db = diff -b
dw = diff --word-diff
dc = diff --cached
l = log --graph -n 20 --date-order -C -M --pretty=format:\"%C(yellow)%h %C(cyan)%d%Creset %s %C(green)- %an, %cr %C(white)(%cd)%Creset\" --all --date=local
ld = log --graph -n 20 --pretty=format:\"%C(yellow)%h %C(cyan)%d%Creset %s %C(green)- %an, %cr %C(white)(%cd)%Creset\" --date=local
ll = log --stat --abbrev-commit
ln = log --graph -n 20 --pretty=format:\"%C(yellow)%h %C(cyan)%d%Creset %s %C(green)- %an, %cr %C(white)(%cd)%Creset\" --name-status --date=local
lp = log --online -n 20 -p
ls = log --stat --abbrev-commit -n 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment