-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitconfig
77 lines (63 loc) · 1.59 KB
/
.gitconfig
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
[include]
path = ~/dotfiles/.gitconfig.local
path = ~/.gitconfig.local
[alias]
addp = add -p
cm = commit -v
co = checkout
br = branch
dff = diff
dfc = diff --cached
dfw = diff --word-diff
cma = commit --amend
ch = cherry-pick
cl = clean
clf = clean -f
down = restore --staged
pushf = push --force-with-lease --force-if-includes
pusho = push origin
rm = rm --cached
rs = restore
rb = rebase
rbi = rebase -i
ss = stash save -u
st = status
sp = stash pop
sw = switch
reset-ammend = reset --soft HEAD@{1}
# いい感じのグラフでログを表示
graph = log --graph --date=short --decorate=short --pretty=format:'%Cgreen%h %Creset%cd %Cblue%cn %Cred%d %Creset%s'
gr = graph
graph-all = log --graph --all --date=short --decorate=short --pretty=format:'%Cgreen%h %Creset%cd %Cblue%cn %Cred%d %Creset%s'
# Untracked filesを表示
st-all = st -uall
# 行ごとの差分じゃなくて,単語レベルでの差分を色付きで表示する
diff-word = diff --word-diff
[init]
defaultBranch = main
[branch]
sort = -committerdate
autoSetupMerge = always
[core]
excludesfile = ~/.config/git/ignore
autocrlf = input
quotepath = false
editor = vim
# pager = "LESSCHARSET=utf-8 less"
whitespace = cr-at-eol
ignorecase = false
[pull]
rebase = false
default = current
[fetch]
prune = true
[push]
default = current
[rebase]
autostash = true
[color]
ui = true
[diff "sjis"]
textconv = iconv -f sjis
[safe]
directory = *