-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathgitconfig
More file actions
139 lines (139 loc) · 3.45 KB
/
gitconfig
File metadata and controls
139 lines (139 loc) · 3.45 KB
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
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
[core]
autocrlf = input
editor = vim
pager = diff-so-fancy | less --tabs=4 -RFX
hooksPath = ~/.config/git/hooks
excludesFile = ~/.config/git/ignore
[alias]
a = add
aa = add .
amend = commit -a --amend --no-edit
b = brunch
br = branch
ci = commit
cd = checkout-default
co = checkout
cp = cherry-pick
currentbranch = !git branch --show-current | tr -d '\n'
currentcommit = !git rev-parse HEAD | tr -d '\n'
default-branch = !git symbolic-ref refs/remotes/origin/HEAD | sed s@^refs/remotes/origin/@@
checkout-default = !git checkout $(git default-branch)
d = diff
dd = diff-default
diff-default = !git diff origin/$(git default-branch)
diff-delta = diff
diff-so-fancy = diff
diff1 = diff
diff2 = diff
f = fetch
fe = fetch
l = log --graph --date=short
logfile = log --follow -p --
merge-default = !git merge origin/$(git default-branch)
mc = merge --continue
ma = merge --abort
md = merge-default
pl = pull
please = push --force-with-lease
prevbranch = previousbranch
previousbranch = !git rev-parse --abbrev-ref @{-1} | tr -d '\n'
ps = push
re = reset
rebase-default = !git rebase -i origin/$(git default-branch)
rd = rebase-default
s = status
setup-fork = remote-setup-fork
st = status
stash-find = stash-explore
stash-fzf = stash-explore
stash-list = stash-explore
stash-ls = stash-explore
sw = switch
tpush = push
track = !git branch --set-upstream-to=origin/`git symbolic-ref --short HEAD`
[push]
autoSetupRemote = true
default = current
[http]
postBuffer = 1048576000
[ssh]
postBuffer = 524288000
[rerere]
enabled = 1
[pager]
diff-default = less
diff-delta = delta
diff-so-fancy = diff-so-fancy | less --tabs=4 -RFX
diff1 = diff-so-fancy | less --tabs=4 -RFX
diff2 = delta
[diff]
tool = vimdiff
algorithm = patience
[difftool]
prompt = false
[difftool "idea"]
cmd = idea diff \"$LOCAL\" \"$REMOTE\"
[help]
autocorrect = 10
[branch]
autosetupmerge = true
[rebase]
missingCommitsCheck = error
autoStash = true
instructionFormat = %s (%an)
[mergetool]
prompt = false
keepbackup = false
[merge]
summary = true
verbosity = 1
tool = meld
ff = true
[mergetool "idea"]
cmd = idea merge \"$LOCAL\" \"$REMOTE\" \"$BASE\" \"$MERGED\"
trustExitCode = false
[interactive]
diffFilter = delta --color-only
[color]
ui = true
[color "branch"]
current = yellow reverse
local = yellow
remote = green
[color "diff-highlight"]
oldNormal = red bold
oldHighlight = red bold 52
newNormal = green bold
newHighlight = green bold 22
[color "diff"]
meta = 227
frag = magenta bold
commit = 227 bold
old = red bold
new = green bold
whitespace = red reverse
[delta]
syntax-theme = Dracula
features = side-by-side line-numbers decorations
whitespace-error-style = 22 reverse
[delta "decorations"]
commit-decoration-style = bold yellow box ul
file-style = bold yellow ul
file-decoration-style = none
hunk-header-style = omit
[pull]
rebase = true
[hub]
protocol = https
[include]
path = ~/.gitconfig.machine
[advice]
skippedCherryPicks = false
[init]
defaultBranch = main
[credential "https://github.com"]
helper =
helper = !/usr/bin/gh auth git-credential
[credential "https://gist.github.com"]
helper =
helper = !/usr/bin/gh auth git-credential