forked from HiDeoo/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgitconfig
95 lines (95 loc) · 2.23 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
[user]
email = [email protected]
name = Manoz
[github]
user = Manoz
[filter "lfs"]
clean = git-lfs clean %f
required = true
smudge = git-lfs smudge %f
[init]
defaultBranch = main
[commit]
gpgsign = true
verbose = true
[tag]
gpgSign = true
[gpg]
program = /usr/local/bin/gpg_wrap
[grep]
lineNumber = true
[core]
pager = delta
[interactive]
diffFilter = delta --color-only
[color]
ui = true
[color "diff"]
commit = "yellow bold"
frag = "magenta bold"
meta = "yellow"
new = "green bold"
old = "red bold"
whitespace = "red reverse"
[color "diff-highlight"]
newHighlight= "green bold 22"
newNormal= "green bold"
oldHighlight= "red bold 52"
oldNormal= "red bold"
[pull]
ff = only
[diff]
tool = vscode
[difftool]
prompt = false
[difftool "vscode"]
cmd = code --wait --diff $LOCAL $REMOTE
[merge]
log = true
tool = vscode
[mergetool "vscode"]
cmd = code --wait --merge $REMOTE $LOCAL $BASE $MERGED
[stash]
showPatch = true
[status]
showUntrackedFiles = all
submoduleSummary = true
[alias]
a = add
ap = add -p
b = branch
branches = for-each-ref --sort=-committerdate --format=\"%(color:blue)%(authordate:relative)\t%(color:red)%(authorname)\t%(color:white)%(color:bold)%(refname:short)\" refs/remotes
c = clone --recursive
cancel = reset --hard
co = checkout
d = diff
dt = difftool
last-msg = !git --no-pager log --format=format:%B -1
last-sha = !git --no-pager log --format=format:%H -1
ls = "!git log --graph --pretty=format:\"%C(yellow)%h %C(green)[%ad]%C(red)%d %C(reset)%s %C(blue)(%cr) %C(#606580)<%cn>%C(reset)\" --date=short --color | sed -Ee 's/(^[^<]*) ago\\)/\\1)/' | less"
main = switch main
pp = pull --prune
r = reflog -20
ra = rebase --abort
rc = rebase --continue
rma = rebase main
rmi = rebase main -i
rv = remote -v
s = status -sb
sub = submodule update --init --recursive
sw = switch
undo = reset --soft HEAD^
wip = "!git add -A && git commit -m WIP"
[delta]
features = vitesse-dark
line-numbers = true
side-by-side = true
[delta "vitesse-dark"]
dark = true
syntax-theme = TwoDark
line-numbers-minus-style = "#cb7676"
line-numbers-plus-style = "#4d9375"
minus-emph-style = syntax "#612424"
minus-style = syntax "#3b1616"
plus-emph-style = syntax "#294c3e"
plus-style = syntax "#172b23"