-
-
Notifications
You must be signed in to change notification settings - Fork 99
/
Copy path.gitconfig
111 lines (92 loc) · 2.65 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
[github]
user = babarot
[core]
editor = nvim
excludesfile = ~/.gitignore
preloadindex = true
pager = less
[color]
ui = auto
[color "diff"]
meta = 242 238
frag = 239 236
old = 167 normal
new = 030 normal
context = 240
commit = 246 024
# meta = yellow bold
# frag = magenta bold
# old = red bold
# new = green bold
# whitespace = red reverse
[alias]
st = status
co = checkout
ci = commit
br = switch
lo = log --color=always --max-count=15 --oneline
ll = lla --first-parent
lla = "log --graph --date=human --format='%C(#e3c78a)%h%C(#ff5454)%d%C(reset) - %C(#36c692)(%ad)%C(reset) %s %C(#80a0ff){%an}%C(reset)'"
graph = log --graph --date-order --all --pretty=format:'%h %Cred%d %Cgreen%ad %Cblue%cn %Creset%s' --date=short
unadd = restore --staged
review = diff origin/HEAD...
rvf = diff origin/HEAD... --name-only
rvc = log --oneline ...origin/HEAD
typechange = status -s | awk '$1=="T"{print $2}' | xargs git checkout
delete-merged-branches = !git branch --merged | grep -v \\* | xargs -I % git branch -d %
branch-log = log --oneline HEAD --not main
blog = log --oneline HEAD --not main
; mylog = log --oneline HEAD --not main
; mylog = log --oneline HEAD --not main | fzf | awk '{print $1}'
[help]
autocorrect = 1
[user]
name = babarot
email = [email protected]
signingkey = D6CF1A347277485E
[pager]
; log = diff-highlight | less -RX
; show = diff-highlight | less -RX
; diff = less
; diff = diff-so-fancy | less --tabs=4 -RFX
; diff = delta --dark --plus-color="#012800" --minus-color="#340001"
diff = "ov --section-delimiter ' --- ' --section-header"
log = "ov -F --section-delimiter '^commit' --section-header-num 3"
show = "ov -F --header 3"
branch = less -X
[diff]
tool = vimdiff
algorithm = histogram
compactionHeuristic = true
# https://difftastic.wilfred.me.uk/
# https://difftastic.wilfred.me.uk/git.html
external = difft --syntax-highlight=off
[init]
defaultBranch = main
[merge]
tool = vimdiff
[commit]
gpgsign = false
template = ~/.gitmessage
[push]
# Use the Git 1.x.x default to avoid errors on machines with old Git
# installations. To use `simple` instead, add this to your `~/.extra` file:
# `git config --global push.default simple`. See http://git.io/mMah-w.
default = matching
[tag]
gpgsign = false
[gpg]
program = gpg
[url "https://"]
insteadOf = git://
[url "ssh://[email protected]/"]
insteadOf = https://github.com/
[url "ssh://[email protected]:443/"]
insteadOf = [email protected]:
[ghq]
root = ~/src
user = babarot
[sequence]
editor = nvim
[url "https://github.com/"]
insteadOf = git://github.com/