-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy path.gitconfig
144 lines (144 loc) · 3.77 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
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
[remote "origin"]
tagOpt = --no-tags
prune = true
pruneTags = true
[core]
whitespace = cr-at-eol,trailing-space,space-before-tab,indent-with-non-tab,tabwidth=4
preloadIndex = true
multiPackIndex = true
splitIndex = true
commitGraph = true
autocrlf = false
safecrlf = false
hooksPath = .github/git-hooks
fscache = true
checkStat = minimal
trustctime = false
untrackedCache = true
useBuiltinFSMonitor = false
fsmonitor = false
fsyncMethod = batch
[commit]
template = .github/git-hooks/gitmessage.txt
[gc]
auto = 0
writeCommitGraph = false
pruneExpire = 1.weeks.ago
[rerere]
enabled = true
autoupdate = false
[lfs "https://github.com/"]
locksverify = true
[lfs]
skipdownloaderrors = true
batch = true
setlockablereadonly = true
tustransfers = true
pruneverifyremotealways = true
fetchrecentrefsdays = 1
pruneoffsetdays = 0
fetchrecentremoterefs = false
[filter "lfs"]
smudge = git-lfs smudge -- %f
process = git-lfs filter-process
required = true
clean = git-lfs clean -- %f
[index]
threads = true
version = 4
[merge]
stat = false
tool = p4merge_pb
[blame]
coloring = highlightRecent
[fetch]
prune = true
pruneTags = true
negotiationAlgorithm = skipping
unpackLimit = 1
writeCommitGraph = false
showForcedUpdates = false
[help]
autoCorrect = prompt
[pack]
threads = 0
[push]
autoSetupRemote = true
[pull]
rebase = true
[receive]
autogc = false
[rebase]
autostash = true
[alias]
fm = !git fetch origin ${1-main} && true
ro = !git rebase origin/${1-main} && true
pf = !git push --force-with-lease --force-if-includes && true
up = !git fm ${1-main} && git ro ${1-main} && true
send = !git add -A Source && git commit -a && git push
pup = !git up ${1-main} && git pf && true
s = -c color.status=always status -sb
state = "!f(){ \
deco_bold='\\x1b[1m'; \
deco_invert='\\x1b[7m'; \
git_status=$(git -c color.status=always status -sb); \
git_lfs_valid=$(git lfs status --porcelain); \
echo \"$git_status\"; \
if [[ -n \"$git_lfs_valid\" ]]; then \
git_lfs_status=$(git -c color.status=always lfs status); \
divider='\n------- git-lfs status -------\\x1b[00m'; \
echo -e \"${deco_bold}${deco_invert}$divider\n\"; \
echo \"$git_lfs_status\"; \
fi; \
}; \
f"
deletebranch = !sh -c 'git branch -d $1 | git push origin --delete $1' -
lard = "!git rev-list --all --objects | sed -n $(git rev-list --objects --all | cut -f1 -d' ' | git cat-file --batch-check | grep blob | sort -n -k 3 | tail -n40 | while read hash type size; do echo -n \"-e s/$hash/$size/p \"; done) | sort -n -k1"
last = log -1 HEAD
uncommit = git reset --soft HEAD^
prettylog = "!git log --pretty=format:'%C(yellow)%h|%Cred%ad|%Cblue%an|%Cgreen%d %Creset%s' --date=short | column -ts'|' | less -r"
tree = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit
full-verify = fsck --full --strict -v --progress
[checkout]
optimizenewbranch = true
[am]
keepcr = true
[reset]
quiet = true
[status]
aheadbehind = false
[gui]
GCWarning = false
[difftool]
prompt = false
[diff]
algorithm = histogram
[color]
ui = auto
[color "branch"]
current = yellow reverse
local = yellow
remote = green
[color "diff"]
meta = yellow bold
frag = magenta bold
old = red bold
new = green bold
[color "status"]
added = green bold
changed = cyan
untracked = magenta reverse
[mergetool "p4merge_pb"]
cmd = .github/p4merge/p4merge.exe $BASE $LOCAL $REMOTE $MERGED
[maintenance]
auto = false
[diff "lfstext"]
textconv = cat
[advice]
fetchShowForcedUpdates = false
[log]
excludedecoration = refs/prefetch/
[fastimport]
unpackLimit = 1
[merge "lfstext"]
driver = git lfs merge-driver --ancestor %O --current %A --other %B --marker-size %L --output %A --program 'git merge-file --stdout --marker-size=%%L %%A %%O %%B >%%D'