-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitconfig
90 lines (88 loc) · 1.89 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
# This is Git's per-user configuration file.
[user]
email = bacbia3696@gmail.com
name = DatNguyen
signingkey = 47BCF80E6276EFAA
[core]
pager = delta
editor = nvim
excludesfile = ~/.gitignore_global
hooksPath = /Users/nguyenthanhdat/.commitlint/hooks
[alias]
a = add
aa = add -A
ae = add -e
ai = add -i
al = !git config --get-regexp ^alias\\. | sed -e s/^alias.// -e s/\\ /\\ $(printf \"\\043\")--\\>\\ / | column -t -s $(printf \"\\043\") | sort -k 1
ap = add -p
au = add -u
b = branch
ba = branch -a
c = commit
cf = config
cfl = config --local
root = rev-parse --show-toplevel
cam = commit -am
cfix = commit --amend
cl = clone
clf = clean -f
cln = clean -n
cm = commit -m
d = diff
dh = diff HEAD
ds = diff --staged
f = fetch
i = init
ib = init --bare
k = checkout
kk = checkout .
kb = checkout -b
kt = checkout --theirs
ko = checkout --ours
l = log
lg = log --graph --oneline --all --decorate
lo = log --oneline
ls = ls-files
m = merge
n = init
o = show
p = push
pf = push --force
rb = rebase
rmc = rm --cached
rs = reset
rt = restore
rv = revert
s = status
ss = stash
u = pull
root = !pwd
patch = !git --no-pager diff --no-color
[pull]
rebase = true
[init]
defaultBranch = main
[interactive]
diffFilter = delta --color-only
[add.interactive]
useBuiltin = false # required for git 2.37.0
[delta]
navigate = true # use n and N to move between diff sections
light = false # set to true if you're in a terminal w/ a light background color (e.g. the default macOS terminal)
plus-style = syntax "#003a00"
side-by-side = false
[merge]
conflictstyle = diff3
tool = vimdiff
[mergetool]
keepBackup = false
[mergetool "vimdiff"]
cmd = nvim -d $LOCAL $REMOTE $MERGED -c '$wincmd w' -c 'wincmd J'
[diff]
colorMoved = default
[url "ssh://git@bitbucket.org/"]
insteadOf = https://bitbucket.org/
[commit]
gpgsign = true
[push]
followTags = true