-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitconfig
53 lines (53 loc) · 1.48 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
[core]
pager = delta
excludesfile = /home/ypc/.config/.gitignore
[pager]
status = true
#difftool = true # difft
diff = delta
log = delta
reflog = delta
show = delta
[interactive]
diffFilter = delta --color-only --features=interactive
[delta]
line-numbers = true
features = decorations
syntax-theme = Nord
navigate = true
[delta "interactive"]
keep-plus-minus-markers = false
[delta "decorations"]
commit-decoration-style = blue ol
commit-style = raw
file-style = omit
hunk-header-decoration-style = blue box
hunk-header-file-style = red
hunk-header-line-number-style = "#067a00"
hunk-header-style = file line-number syntax
[merge]
conflictstyle = diff3
[url "ssh://git@pinhome-gitlab/"]
insteadOf = https://gitlab.com/pinvest/*
[user]
name = Yofriadi Yahya
[push]
default = current
[pull]
default = current
rebase = true
[diff]
#external = difft # still not integrate with delta
#tool = difftastic # difft
colorMoved = default
#[difftool]
# prompt = false # difft
#[difftool "difftastic"]
# cmd = difft "$LOCAL" "$REMOTE" # difft
[alias]
#dft = difftool
#dlog = "!f() { GIT_EXTERNAL_DIFF=difft git log -p --ext-diff $@; }; f"
# use fzf to list changes and add it with tab key, then enter
fza = "!git ls-files -m -o --exclude-standard | fzf -m --print0 | xargs -0 git add"
# removes local branches that don't exist on the remote.
gone = "!f() { git fetch --all --prune; git branch -vv | awk '/: gone]/{print $1}' | xargs git branch -D; }; f"