-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitconfig
127 lines (103 loc) · 2.42 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
[user]
name = David Guyon
email = [email protected]
[core]
excludesfile = ~/.gitignore_global
editor = code --wait
protectHFS = true
protectNTFS = true
preloadindex = true
ignorecase = false
[color]
ui = true
[alias]
co = checkout
cob = checkout -b
ci = commit
hist = log --pretty=format:\"%h %ad | %s%d [%an]\" --graph --date=short
branches = branch -a
remotes = remote -v
tags = tag -l
stashes = stash list
lg = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit
wip = !git add . && git commit -m 'WIP'
sync = !git co master && git pull --rebase && git co - && git rebase master
rewrite = !git rebase -i $(git merge-base master HEAD)
sync-main = !git co master && git pull --rebase && git co - && git rebase main
rewrite-main = !git rebase -i $(git merge-base main HEAD)
merged = branch --merged
unmerged = branch --no-merged
del = branch -D
st = status -sb
precommit = diff --cached --diff-algorithm=minimal -w
nevermind = !git reset --hard HEAD && git clean -d -f
unstage = reset -q HEAD --
discard = checkout --
amend = commit --amend --no-edit
untracked = clean -f -d
please = push --force-with-lease
prlog = "log --pretty=oneline --abbrev-commit --graph --decorate --first-parent"
ls = log --oneline
last = log -1 HEAD
prune = fetch --prune
aliases = config --get-regexp alias
ra = rebase --abort
rc = rebase --continue
psu = push --set-upstream
unstash = stash pop
purge = clean -fdx
root = rev-parse --show-toplevel
[push]
default = simple
followTags = true
autoSetupRemote = true
[merge]
ff = only
[grep]
fullname = true
[tag]
sort = -version:refname
[status]
showUntrackedFiles = all
submoduleSummary = true
[transfer]
fsckobjects = true
[credential]
helper = store
[filter "media"]
required = true
clean = git media clean %f
smudge = git media smudge %f
[pull]
rebase = true
[include]
path = ~/.gitconfig_local
[help]
autocorrect = 1
[diff]
indentHeuristic = true
colorMoved = zebra
tool = difftastic
[difftool]
prompt = false
[difftool "difftastic"]
cmd = difft "$LOCAL" "$REMOTE"
[pager]
difftool = true
[filter "lfs"]
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
required = true
process = git-lfs filter-process
[fetch]
recurseSubmodules = false
prune = true
[rerere]
enabled = true
[commit]
verbose = true
gpgsign = true
[submodule]
fetchJobs = 4
[protocol]
version = 2