-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitconfig
70 lines (70 loc) · 1.81 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
[alias]
cb = rev-parse --abbrev-ref HEAD
civ = commit --interactive --verbose
purr = pull --rebase
p = push
pf = push --force-with-lease
r = rebase
f = fetch
pu = !git push -u origin $(git cb)
lg = log --graph --date-order --all --pretty='%C(yellow)%h%Creset -%C(red)%d%Creset %s %Cgreen(a: %ar, c: %cr) %C(bold blue)<%an>%Creset'
co = checkout
cob = checkout -b
cot = checkout -t
prune-remote = !git remote | xargs -n 1 git remote prune
prune-local = !git branch --merged | grep -v '*' | grep -v master | grep -v development | xargs -n 1 git branch -d
prune-remote-rebased = !git branch -vv | grep ': gone]' | awk '{print $1}' | xargs git branch -D
cleanup = !git prune-remote && git prune-local && git prune-remote-rebased
rebase-master = !bash -c 'BRANCH=$(git cb) && git co master && git rebase $BRANCH && git p' -
[user]
name = Bence Dányi
[color]
ui = auto
[core]
editor = nvim
# pager = git-split-diffs --color | less -RFX
pager = delta --dark
[push]
default = upstream
[pull]
rebase = true
[rebase]
autosquash = true
autostash = true
[branch]
autosetuprebase = always
[interactive]
singlekey = true
diffFilter = delta --color-only --dark
[delta]
line-numbers = true
syntax-theme = base16
minus-style = red normal
plus-style = green normal
zero-style = normal normal
[advice]
statusHints = false
pushNonFastForward = false
#[diff]
# renames = copies
# mnemonicprefix = true
# colorMoved = zebra
[difftool]
prompt = false
[pager]
difftool = true
[color "diff-highlight"]
oldNormal = red bold
oldHighlight = red bold 52
newNormal = green bold
newHighlight = green bold 22
[color "diff"]
frag = magenta bold
commit = yellow bold
old = red bold
new = green bold
whitespace = red reverse
[commit]
gpgsign = true
[include]
path = ~/dotfiles/local.gitconfig