-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathgit-config
More file actions
133 lines (117 loc) · 3.78 KB
/
git-config
File metadata and controls
133 lines (117 loc) · 3.78 KB
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
# symlink from your home directory: ln -s git-config/git-config .gitconfig
[alias]
s = status
b = branch -vv
f = fetch
fo = fetch origin
# checkout variants
c = checkout
cm = checkout main
co = checkout origin/main
cu = checkout @{upstream}
cb = checkout -b
# diff variants
d = diff --color-words
dt = difftool --dir-diff
dn = diff --name-only
ds = diff --stat
# diff variants with cached index
dc = diff --color-words --cached
dcn = diff --color-words --cached --name-only
dnc = diff --color-words --cached --name-only
dcs = diff --color-words --cached --stat
dsc = diff --color-words --cached --stat
dch = diff --color-words --cached
dhc = diff --color-words --cached
dco = diff --color-words --cached origin/main
doc = diff --color-words --cached origin/main
dcu = diff --color-words --cached @{upstream}
duc = diff --color-words --cached @{upstream}
# diff variants with head
dh = diff --color-words HEAD
dht = difftool --dir-diff HEAD
dth = difftool --dir-diff HEAD
dhn = diff --name-only HEAD
dnh = diff --name-only HEAD
dhs = diff --stat HEAD
dsh = diff --stat HEAD
# diff variants with origin/main
do = diff --color-words origin/main...
dot = difftool --dir-diff origin/main...
dto = difftool --dir-diff origin/main...
don = diff --name-only origin/main...
dno = diff --name-only origin/main...
dos = diff --stat origin/main...
dso = diff --stat origin/main...
# diff variants with upstream
du = diff --color-words @{upstream}...
dut = difftool --dir-diff @{upstream}...
dtu = difftool --dir-diff @{upstream}...
dun = diff --name-only @{upstream}...
dnu = diff --name-only @{upstream}...
dus = diff --stat @{upstream}...
dsu = diff --stat @{upstream}...
# log variants
l = log --relative-date
ls = log --relative-date --stat
l1 = log --relative-date --oneline
lu = log --relative-date @{upstream}..
lo = log --relative-date origin/HEAD..
lf = log --relative-date --first-parent
lp = log --relative-date -p --cc --color-words
# commit
cam = commit -a -m
cwip = commit -a -m "WIP"
commitamend = commit --amend -C HEAD
commitempty = commit --allow-empty
commitcomment = commit -am "comment(s)"
commitchange = commit --allow-empty -am "ChangeLogs"
commitupload = commit --allow-empty -m "upload"
# retires a branch by renaming it to zMONTH-DAY-name. Use: git bretire branchname
# this one allows autocomplete.
bretire = "!f(){ git branch -m $1 z$(date +%m-%d-)$1; };f"
#bretire_safer = "!f(){ [ "$1." != "." ] && git branch -m $1 z$(date +%m-%d-)$1 || echo "Usage: git bretire branchname"; };f"
# misc
conflicts = diff --name-only --diff-filter=U
mb = merge-base @{upstream} HEAD
pullne = pull --no-edit # Do not open editor for a merge commit message.
set-upstream-main = branch --set-upstream-to=origin/main
set-upstream-lkcr = branch --set-upstream-to=origin/lkcr
set-upstream-lkgr = branch --set-upstream-to=origin/lkgr
# Chromium depot_tools specific
nd = nav-downstream
nu = nav-upstream
m = map-branches
[core]
fsmonitor = true
untrackedCache = true
[branch]
autosetupmerge = always
[diff]
tool = meld
[difftool]
prompt = false
[merge]
conflictstyle = diff3
tool = p4v
stat = false # Suppress status update after merges, as Chromium merges are huge.
[mergetool]
prompt = false
[mergetool "p4v"]
cmd = p4v -merge "$BASE" "$LOCAL" "$REMOTE" "$MERGED"
[pull]
rebase = false # Merge is default; specified to suppress option message.
[rerere]
enabled = 1
[diff]
renames = copies
[color "diff"]
func = italic
[pager]
branch = false # No need to use 'less' or other pagers when listing branches.
[user]
name = Vincent Scheib
email = [email protected]
[alias]
lme = log --relative-date --author=scheib
#### local only changes below: