/
gitconfig
104 lines (81 loc) · 2.52 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
[user]
name = Thibault Duplessis
email = t@lichess.org
[color]
ui = true
[color "branch"]
current = yellow reverse
local = yellow
remote = green
[color "diff"]
meta = yellow bold
frag = magenta bold
old = red
new = green
[core]
editor = nvim
whitespace = fix,-indent-with-non-tab,trailing-space,cr-at-eol
excludesfile = /home/thib/dotfiles/gitignore
pager = delta
[interactive]
diffFilter = delta --color-only
[delta]
navigate = true # use n and N to move between diff sections
[merge]
conflictstyle = diff3
[diff]
colorMoved = default
[merge]
summary = true
verbosity = 1
tool = meld
[mergetool "diffconflicts"]
cmd = diffconflicts $EDITOR $BASE $LOCAL $REMOTE $MERGED
trustExitCode = true
keepBackup = false
[web]
browser = google-chrome-stable
[push]
# 'git push' will push the current branch to its tracking branch
# the usual default is to push all branches
default = tracking
autoSetupRemote = true
[apply]
whitespace = nowarn
[branch]
autosetupmerge = true
[diff]
# Git diff will use (i)ndex, (w)ork tree, (c)ommit and (o)bject
# instead of a/b/c/d as prefixes for patches
mnemonicprefix = true
compactionHeuristic = true
[alias]
# show list of contributors in descending order by number of commits
rank = shortlog -sn --no-merges
# given any git object, try to show it briefly
whatis = show -s --pretty='tformat:%h (%s, %ad)' --date=short
# Add modified files to previous commit
oups = !"git add -A -v && git commit --amend -C HEAD"
# nice logs
l = log --decorate --graph --date=short --pretty=\"format:%C(blue)%ad%Creset %C(yellow)%h%C(green)%d%Creset %C()%s %C(black) [%an]%Creset\"
changes = log --pretty=format:\"%h %cr %cn %Cgreen%s%Creset\" --name-status
mini = log --pretty=format:\"%h\"
short = log --pretty=format:\"%h %cr %cn %Cgreen%s%Creset\"
changelog = log --pretty=format:\" * %s\"
shortnocolor = log --pretty=format:\"%h %cr %cn %s\"
recent-branches = branch --sort=-committerdate --format='%(HEAD) %(color:yellow)%(refname:short)%(color:reset) - %(color:red)%(objectname:short)%(color:reset) - %(contents:subject) - %(authorname) (%(color:green)%(committerdate:relative)%(color:reset))'
[github]
user = ornicar
[rerere]
# Remember my merges
# http://gitfu.wordpress.com/2008/04/20/git-rerere-rereremember-what-you-did-last-time/
enabled = true
[rebase]
autoStash = true
[pull]
rebase = false
[credential "https://github.com"]
helper =
helper = !/usr/bin/gh auth git-credential
[safe]
directory = /opt/flutter