Last active
April 29, 2023 02:54
-
-
Save megurock/dbefc28d58d8c5dab41194f374dd91b7 to your computer and use it in GitHub Desktop.
.gitconfig
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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