-
Notifications
You must be signed in to change notification settings - Fork 2
/
.gitconfig
75 lines (75 loc) · 2.06 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
[user]
name = Mark Lodato
email = lodato@google.com
[alias]
ack = -c color.grep.filename=6 grep --break --heading
b = recent-branches
co = checkout
diffc = diff --cached
diffcw = diff --cached --color-words
diffw = diff --color-words
diffwc = diff --cached --color-words
ds = diff --stat --relative
k = !sh -c 'gitk \"$@\" &' git-k
l = log --graph --decorate --oneline --date-order
la = log --graph --decorate --oneline --all --remotes --date-order
lat = log --graph --decorate --oneline --all --remotes
lb = !bash -c 'f() { git log --graph --decorate --oneline --date-order \"$@\" \"$(git merge-base --octopus \"$@\")^!\" ";" } ";" f \"${1-HEAD}\" \"${2-upstream}\" \"${@:3}\"' -
locate = !sh -c 'cd \"$GIT_PREFIX\" && git ls-files \"$(git rev-parse --show-cdup)\" | ([ "$#" -eq 0 ] && cat || grep --color=auto \"$@\")' -
ls = log --graph --decorate --oneline --date-order -5
lt = log --graph --decorate --oneline
lu = log --graph --decorate --oneline --date-order ^main
mergef = merge --ff-only
pr = !gh pr
pullf = pull --ff-only
s = status -sb
sync = !hub sync
tag-sorted = !git tag | xargs -IT git log -n1 --format=%at-T T | sort -rnk1 | cut -d- -f2-
u = remote update -p
[branch]
autoSetupMerge = always
[core]
hooksPath = ~/.config/git/hooks
[interactive]
singlekey = 1
[log]
date = iso
[color "diff"]
func = 176
[color "diff-highlight"]
oldNormal = red
oldHighlight = red bold 52
newNormal = green
newHighlight = green bold 22
[color "grep"]
filename = 246
linenumber = 246
function = 176
[merge]
tool = gvimdiff
conflictstyle = diff3
defaultToUpstream = true
[rebase]
autosquash = true
[diff]
colorMoved = dimmed-zebra
tool = meld
mnemonicprefix = true
[clangFormat]
style = Google
[push]
default = simple
[credential]
helper = gnome-keyring
[recent-branches]
ignore = ^junk/
[pager]
diff = diff-so-fancy | less
[url "git@github.com:"]
pushInsteadOf = "https://github.com/"
pushInsteadOf = "git://github.com/"
[url "git@gitlab.com:"]
pushInsteadOf = "https://gitlab.com/"
pushInsteadOf = "git://gitlab.com/"
[init]
defaultBranch = main