2019/09/28

gitconfig

自分用。 git statusとかgit branchとかgit checkoutとか打ってる時間クソ無駄なのでエイリアス派です。これがないとやる気にならないので備忘

[filter “lfs”]
clean = git-lfs clean — %f
smudge = git-lfs smudge — %f
process = git-lfs filter-process
required = true
[color]
ui = true
diff = true
[core]
editor = /usr/bin/vim
excludesfile = /Users/ユーザー名/.gitignore_global
[user]
name = 名前
email = メールアドレス
[alias]
tree = log –graph –all –format=\”%x09%C(cyan bold)%an%Creset%x09%C(yellow)%h%Creset %C(magenta reverse)%d%Creset %s\”
graph = log –graph –date-order -C -M –pretty=format:\”<%h> %ad [%an] %Cgreen%d%Creset %s\” –all –date=short
st = status
br = branch -v
df = diff
co = checkout
last = show -1 HEAD –stat -p
ci = commit
bull = pull
dfc = diff –color-words
[difftool “sourcetree”]
cmd = opendiff \”$LOCAL\” \”$REMOTE\”
path =
[mergetool “sourcetree”]
cmd = /Applications/Sourcetree.app/Contents/Resources/opendiff-w.sh \”$LOCAL\” \”$REMOTE\” -ancestor \”$BASE\” -merge \”$MERGED\”
trustExitCode = true
[commit]
[commit]
template = /Users/ユーザー名/.stCommitMsg