Skip to content

Instantly share code, notes, and snippets.

@megurock
Last active April 29, 2023 02:54
Show Gist options
  • Save megurock/dbefc28d58d8c5dab41194f374dd91b7 to your computer and use it in GitHub Desktop.
Save megurock/dbefc28d58d8c5dab41194f374dd91b7 to your computer and use it in GitHub Desktop.
.gitconfig
[user]
name = Eiji Meguro
email = [email protected]
[core]
autocrlf = input
editor = emacs -nw
[alias]
br = branch
st = status
cm = commit -m
pl = pull --prune
ps = push -u origin
co = checkout
lg = log --oneline
pl = pull --prune
# いい感じのグラフでログを表示
gr = log --graph --date=short --decorate=short --pretty=format:'%Cgreen%h %Creset%cd %Cblue%cn %Cred%d %Creset%s'
# 単語レベルでの差分を色付きで表示する
dw = diff --word-diff
# 変更のあったファイルとそのファイルの修正ライン数を表示する
df = log --pretty=format:"%C(yellow)%h%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate --numstat
# ローカルとリモートのブランチを同期する
refresh= !git fetch origin && git remote prune origin
[credential]
helper = osxkeychain
[pull]
rebase = false
[push]
default = current
[init]
defaultBranch = main
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment