-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitconfig
123 lines (88 loc) · 2.46 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
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
[alias]
s = "!git status --short"
st = "!git status"
ca = "!git add --all && git commit --all"
ci = "!git add --all && git commit"
co = "!f() { git checkout -b \"$1\" 2>/dev/null || git checkout \"$1\"; }; f"
cr = "!git clone --recursive"
ff = "!git merge --ff-only"
p = "!git push --set-upstream origin $(git rev-parse --abbrev-ref HEAD)"
up = "!git pull && git submodule update --init --recursive && git submodule update --remote --merge"
reb = "!r() { git rebase --interactive HEAD~$1; }; r"
branches = "!git branch --all"
remotes = "!git remote --verbose"
tags = "!git tag --list"
lg = "!git log --abbrev-commit --color --decorate --graph --pretty=format:'%C(auto)%h%Creset -%C(auto)%d%Creset %s %C(magenta)(%cr) %C(cyan)<%an>%Creset'"
ten = "!git --paginate log -10 --pretty=format:'%C(auto)%h%Creset -%C(auto)%d%Creset %s %C(magenta)(%cr) %C(cyan)<%an>%Creset'"
d = "!git diff-index --quiet HEAD -- || git diff --patch-with-stat"
di = "!d() { git diff --patch-with-stat HEAD~$1; }; git diff-index --quiet HEAD --; d"
fb = "!f() { git branch --all --contains $1; }; f"
fc = "!f() { git log --pretty=format:'%C(yellow)%h %Cblue%ad %Creset%s%Cgreen [%cn] %Cred%d' --decorate --date=short -S$1; }; f"
fm = "!f() { git log --pretty=format:'%C(yellow)%h %Cblue%ad %Creset%s%Cgreen [%cn] %Cred%d' --decorate --date=short --grep=$1; }; f"
[branch]
autoSetupMerge = always
autoSetupRebase = local
[branch "master"]
rebase = true
[color]
ui = auto
[color "diff-highlight"]
newHighlight = "green reverse"
newNormal = "green"
newReset = "noreverse"
oldHighlight = "red reverse"
oldNormal = "red"
oldReset = "noreverse"
[color "diff"]
commit = "yellow"
frag = "magenta"
meta = 11
new = "green"
old = "red"
whitespace = "red reverse"
[color "interactive"]
prompt = blue reverse
[color "status"]
untracked = blue
[commit]
verbose = true
[core]
attributesFile = ~/.gitattributes
compression = 9
excludesFile = ~/.gitignore
looseCompression = 9
[diff]
algorithm = histogram
compactionHeuristic = true
renames = copies
[fetch]
prune = true
[grep]
lineNumber = true
[help]
autoCorrect = 2
[log]
decorate = short
[merge]
conflictStyle = zdiff3
log = 1000
[pager]
show-branch = true
status = true
[protocol]
version = 2
[pull]
ff = only
rebase = preserve
[push]
default = simple
[rebase]
autoSquash = true
[rerere]
enabled = true
[status]
submoduleSummary = true
[submodule]
fetchJobs = 4
[include]
path = .gitconfig.local