-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathgitconfig
104 lines (104 loc) · 3.12 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
[alias]
a = add
alias = config --get-regexp '^alias.'
amend = commit --amend --verbose
br = branch --verbose
bra = branch --all --verbose
brd = branch --delete
brmv = branch --move
brrd = push origin --delete
c = commit
co = checkout
df = diff
dfsg = diff --staged
dfstsh = stash show --patch
fixup = commit --fixup
l = log --date=short --format='%C(auto,yellow)%h%C(reset) %C(auto,brightblue)%cd%C(reset) %s %C(auto)%d'
ll = log --stat
lfz = "! f() { \
git l --color=always "$@" \
| fzf \
--ansi \
--preview='git show --color=always {1} | delta' \
--bind='enter:execute(git show {1})' \
--bind='ctrl-y:execute-silent(echo {1} | pbcopy)+abort' \
; \
}; f \
"
pf = push --force-with-lease
rba = rebase --abort
rbc = rebase --continue
rbi = rebase --interactive
rmt = remote --verbose
s = "! f() { rg --hidden --smart-case --json "\"$@\"" | delta; }; f"
sfz = "! f() { \
RG_PREFIX='rg --color=always --column --no-heading --line-number --hidden --smart-case'; \
: | fzf \
--ansi --disabled \
--query=${*:-} \
--delimiter=: --nth=1,2 --with-nth=1,2 \
--preview='bat --color=always --highlight-line={2} {1}' \
--preview-window='+{2}-/2' \
--bind=\"start:reload:$RG_PREFIX {q}\" \
--bind=\"change:reload:$RG_PREFIX {q} || true\" \
--bind='enter:become(nvim {1} +{2})' \
; \
}; f \
"
st = status --short --branch
stsh = stash --staged
stsha = stash --include-untracked
sw = switch
uncommit = reset HEAD~1
undo = restore
unstage = restore --staged
[commit]
template = ~/.config/git/commit
[core]
autocrlf = input
excludesfile = ~/.config/git/ignore
pager = delta
[delta]
grep-output-type = ripgrep
line-numbers = true
navigate = true
syntax-theme = Nord
[delta "interactive"]
color-only = true
keep-plus-minus-markers = false
[diff]
tool = nvimdiff
colormoved = default
[difftool]
prompt = false
[difftool "nvimdiff"]
cmd = nvim -d $LOCAL $REMOTE
[fetch]
prune = true
prunetags = true
[init]
defaultbranch = master
templatedir = ~/.config/git/templates
[interactive]
difffilter = delta --features=interactive
[merge]
ff = only
tool = nvimdiff
conflictstyle = diff3
[mergetool]
prompt = false
[mergetool "nvimdiff"]
cmd = nvim -d $BASE $LOCAL $REMOTE $MERGED -c '$wincmd w' -c 'wincmd J'
[pull]
ff = only
[push]
default = current
[rebase]
autosquash = true
[user]
email = [email protected]
name = Charles B Johnson
[include]
path = ~/.config/dotfile/gitconfig.local
[include]
path = ~/.config/dotfile/gitconfig.secret