-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitconfig
46 lines (43 loc) · 1.2 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
[alias]
st = status
ci = commit
br = branch
co = checkout
p = pull
pul = pull
ns = diff --name-status
cx = cherry-pick -x
lg = "!git log --graph --decorate --pretty=format:'%C(yellow)%h %Cred%cr %Cblue(%an)%C(cyan)%d%Creset %s' --abbrev-commit --all"
lb = "!git log --graph --decorate --pretty=format:'%C(yellow)%h %Cred%cr %Cblue(%an)%C(cyan)%d%Creset %s' --abbrev-commit --first-parent $(git branch --show-current)"
logs = !git-fzf log
reflogs = !git-fzf reflog
prs = !gh-fzf prs
issues = !gh-fzf issues
events = !gh-fzf events
# Run bash from the current dir. Used for the `config` bash alias.
# `config bash` to enter a bash shell so that `git` commands work as `config`.
bash = "!f() { cd ${GIT_PREFIX:-./}; bash; }; f"
[mergetool]
keepBackup = false
[diff]
tool = nvim
[mergetool "nvim"]
; cmd = NVIM_DIFF=1 nvim -d -c \"norm ]c\" \"$LOCAL\" \"$MERGED\" \"$REMOTE\" ; Native functionality
cmd = NVIM_DIFF=1 nvim -f -c \"Gvdiffsplit!\" \"$MERGED\"
[merge]
tool = nvim
[commit]
gpgSign = true
[include]
path = ~/.gitconfig_local
[pull]
ff = only
[core]
pager = delta
[interactive]
diffFilter = delta --color-only
[delta]
navigate = true
light = false
line-numbers = true
side-by-side = true