-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.gitconfig
116 lines (99 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
105
106
107
108
109
110
111
112
113
114
115
116
[user]
name = techgaun
email = [email protected]
signingkey = 5034468E68643BF3
[core]
editor = nvim
excludesfile = ~/.gitignore
pager = delta --dark --hyperlinks
; pager = diff-so-fancy | less --tabs=4 -RFX
[alias]
a = add .
b = branch
c = clone --recursive --depth 50
commend = commit --amend --no-edit --reset-author
feat = "!f() { git checkout -b feat/$1; }; f"
bug = "!f() { git checkout -b bugfix/$1; }; f"
hfix = "!f() { git checkout -b hotfix/$1; }; f"
cm = commit -m
cn = commit -n -m
cp = checkout -
cc = checkout -- .
f = fetch
fit = !git add -A && git commit -m \"$(curl -s http://whatthecommit.com/index.txt)\"
fnit = !git add -A && git commit -n -m \"$(curl -s http://whatthecommit.com/index.txt)\"
fl = "!f() { git log --follow $1; }; f"
it = !git init && git symbolic-ref HEAD refs/heads/main && git commit -m "root" --allow-empty
l = log --decorate --pretty=oneline -n 20 --graph --abbrev-commit
la = log --graph --abbrev-commit --decorate --all --format=format:"%C(bold blue)%h%C(reset) - %C(bold cyan)%aD%C(dim white) - %an%C(reset) %C(bold green)(%ar)%C(reset)%C(bold yellow)%d%C(reset)%n %C(white)%s%C(reset)"
ll = log --pretty=format:"%C(yellow)%h%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate --numstat
lp = log --graph --pretty=format:'%C(yellow)%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative
ls = log --pretty=format:"%C(green)%h\\ %C(yellow)[%ad]%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate --date=relative
mc = clone --branch=main --depth 50
mm = merge main
p = pull
rp = remote prune origin
s = status -s
sl = stash list
d = diff --cached
patch = !git --no-pager diff --no-color
git = !exec git
g = !exec git
praise = blame
stu = stash save -u
sts = stash show
sp = stash pop
pushall = !git remote | xargs -L1 git push --all
[commit]
gpgsign = true
[diff]
colorMoved = default
[diff "bin"]
textconv = hexdump -v -C
[log]
abbrevCommit = true
decorate = true
follow = true
[pull]
rebase = true
[color "diff-highlight"]
oldNormal = red bold
oldHighlight = red bold 52
newNormal = green bold
newHighlight = green bold 22
[color "diff"]
meta = 11
frag = magenta bold
commit = yellow bold
old = red bold
new = green bold
whitespace = red reverse
[color]
ui = true
[icdiff]
options = --highlight --line-numbers
[merge "npm-merge-driver"]
name = automatically merge npm lockfiles
driver = npx npm-merge-driver merge %A %O %B %P
[interactive]
diffFilter = delta --color-only
[delta]
side-by-side = true
line-numbers = true
decorations = true
syntax-theme = 1337
plus-style = syntax "#003800"
minus-style = syntax "#3f0001"
map-styles = bold purple => syntax magenta, bold cyan => syntax blue
[delta "decorations"]
commit-decoration-style = bold yellow box ul
file-style = bold yellow ul
file-decoration-style = none
hunk-header-decoration-style = cyan box ul
[delta "line-numbers"]
line-numbers-left-style = cyan
line-numbers-right-style = cyan
line-numbers-minus-style = 124
line-numbers-plus-style = 28
[push]
autoSetupRemote = true