-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitconfig
100 lines (79 loc) · 1.91 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
#################################
# CONFIG #
#################################
[core]
fileMode = true
eol = lf
excludesfile = ~/.gitignore
editor = vim
pager = delta
whitespace = trailing-space
[blame]
date = human
[branch]
autoSetupRebase = always
[diff]
colorMoved = default
tool = vimdiff
[gpg]
program = gpg
[init]
defaultBranch = main
templateDir = ~/.git/templates/default
[interactive]
diffFilter = delta --color-only
[log]
decorate = auto
[merge]
tool = vimdiff
conflictstyle = diff3
[pull]
rebase = true
[push]
autoSetupRemote = true
default = upstream
followTags = true
[rebase]
abbreviateCommands = true
[web]
browser = firefox
[user]
useConfigOnly = true
[delta]
navigate = true
light = false
line-numbers = true
syntax-theme = base16
###########################################
# REMOTES and URLs #
###########################################
[remote "origin"]
fetch = +refs/pr/*/head:refs/remotes/origin/pr/*
[url "ssh://git@github.com/"]
insteadOf = https://github.com/
###########################################
# INCLUDE #
# sensitive configi for gpg and identity #
# with includeIfs rules for work/personal #
###########################################
[include]
path = ~/.git/.gitconfig
#################################
# ALIAS #
# @deprecated - use omz aliases #
#################################
[alias]
a = add
b = branch
c = commit
cm = commit -m
cam = commit -am
ch = checkout
d = diff
f = fetch
l = log
m = merge
p = push
r = rebase
s = status
oldest-ancestor = !zsh -c 'diff --old-line-format= --new-line-format= <(git rev-list --first-parent \"${1:-master}\") <(git rev-list --first-parent \"${2:-HEAD}\") | head -1' -