-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy path.gitconfig
86 lines (84 loc) · 2.36 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
78
79
80
81
82
83
84
85
86
[include]
path = ~/.gitconfig_local
[color]
ui = auto
diff = always
grep = always
branch = always
status = always
interactive = always
[core]
pager = less -S
# pager = delta --plus-color="#012800" --minus-color="#340001" --theme='Monokai Extended'
editor = vim
autocrlf = input
commitGraph = true
excludesfile = ~/dotfiles/.gitignore_global
quotepath = false
ignorecase = false
attributesfile = ~/.gitattributes
[pull]
rebase = true
[push]
default = matching
[diff]
algorithm = histogram
compactionHeuristic = true
[merge]
tool = vimdiff
keepBackup = false
[mergetool]
keepBackup = false
[alias]
f = fetch --prune --all
p = pull --prune
st = status
re = rebase origin main
sts = !"git status | awk '/On/,/Changes not staged/'"
stn = !"git status | awk '/Changes not staged/,/END/'"
br = branch
ci = commit
ck = checkout
cp = cherry-pick
wc = whatchanged
re = remote -v
dif = icdiff
difc = icdiff --cached
diffc = diff --cached
diffg = difftool --tool=vimdiff --no-prompt
push = push --tags
pushf = push --force-with-lease
# %x09 Tab
# %H Commit Hash(full)
# %h Commit Hash(short)
# %an Author Name
# %ae Author Email
# %ad Author Date
# %cn Comitter Name
# %ce Comitter Email
# %cd Comitter Date
# %s message
# %d branch/tag
# %C(red bold) start color
# [color] = [normal, black, red, green, yellow, blue, magenta, cyan, white]
# [style] = [bold, dim, ul, blink, reverse]
# %C(reset) reset color
logp = log -p
logw = log -p --word-diff=porcelain
logs = log --stat
logaa = log --graph --color --pretty='%x09%h %s %C(red)%d%C(reset)'
loga = log --graph --color --pretty='%x09%h %s %C(red)%d%C(reset)' --all
logo = log --graph --date=format:'%y-%m-%d(%a) %T' --pretty=format:'%C(green)%ad%C(reset) %an %ae %s'
logg = log --graph --date=format:'%y-%m-%d(%a) %T' --pretty=format:'%h %C(green)%cd %C(blue)%ad %C(green)%cn %C(blue)%an %C(green)%ce %C(blue)%ae %C(reset)%s'
url = !git config --get remote.origin.url | sd '.git$' '' | sd ':' '/' | sd 'git@' 'https://'
[pager]
diff = diff-highlight | less
show = diff-highlight | less
log = diff-highlight | less
[interactive]
diffFilter = diff-highlight
# diffFilter = delta --color-only
[diff "image"]
textconv = stat -c %s
[http]
cookiefile = ~/.gitcookies