-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitconfig
102 lines (70 loc) · 2.19 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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
[core]
editor = vim
# executable bit are ignored, useful for FAT.
fileMode = false
# no line-ending conversion during commit or checkout
# [Reason] otherswise, you may encounter some weired things:
# [Example] right after clonging, 'git status' tells you some files modified
autocrlf = false
#symlinks = false
#gitproxy=""
[user]
name = Adaptee
email = [email protected]
[rerere]
#enabled = true
[color]
ui = auto
[diff]
# invoked when runnig "git difftool"
tool = vimdiff
[difftool]
prompt = false
[merge]
# invoked when running "git mergetool"
tool = kdiff3
# generate diff3 style conflict file: ours, base, theirs
conflictstyle = diff3
[push]
default = matching
[status]
relativePath = true
# do not show untracked files & folders in git-status
showUntrackedFiles = no
[alias]
ad = add
adi = add -i
br = branch
bra = branch -a
brd = branch -d
cm = commit -m
cma = commit -a -m
co = checkout
cob = checkout -b
cl = clone
df = difftool
dfc = difftool --cached
ch = diff --stat -r
st = status
wtf = !git-wtf
unstage = reset HEAD --
recover = checkout HEAD --
last = log -1 HEAD
lg = log --stat --date=relative
lgs = log --graph --pretty=format:'%Cred%h%Creset\n-%C(yellow)%d%Creset %s %Cgreen(%cr)%Creset' --abbrev-commit --date=relative
assume = !git-show-assume-unchanged
contain = !git-show-what-is-contained
rmt = remote -v
# prune all stale tracking branches in all remotes
prune-all = !git remote | xargs -n 1 git remote prune
edit-unmerged = "!f() { git ls-files --unmerged | cut -f2 | sort -u ; }; vim `f`"
add-unmerged = "!f() { git ls-files --unmerged | cut -f2 | sort -u ; }; git add `f`"
# create alias from command line
alias = !sh -c '[ $# = 2 ] && git config --global alias.\"$1\" \"$2\" && exit 0 || echo \"usage: git alias <new alias> <original command>\" >&2 && exit 1' -
[i18n]
commitEncoding = utf-8
logOutputEncoding = utf-8
[gc]
auto = 1
[help]
autocorrect = 0