-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathgitconfig
98 lines (96 loc) · 2.74 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
[include]
path = ~/.gitconfig.local
[init]
defaultBranch = main
[user]
name = "Gonzalo Serrano"
email = boikot@gmail.com
[http]
cookiefile = /Users/gonzalo/.gitcookies
[alias]
st = status
stp = status --porcelain
br = branch
co = checkout
df = diff --no-ext-diff
dfs = diff --no-ext-diff --staged
lp = log -p --no-prefix
lg = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit
lgs = log -git whatchanged -n 1 --no-prefix
ls = ls-files
stl = stash list
stash-all = stash save --include-untracked
pomr = pull origin master
pomn = pull origin main
pod = pull origin develop
sub = submodule update --init --recursive
rc = rebase --continue
rs = rebase --skip
ri2 = rebase -i head~2
ri3 = rebase -i head~3
ri4 = rebase -i head~4
ri5 = rebase -i head~5
ri6 = rebase -i head~6
ri7 = rebase -i head~7
ri8 = rebase -i head~8
ri9 = rebase -i head~9
ria = rebase --interactive --autosquash
g = grep --break --heading --line-number
lt = describe --tags --abbrev=0
tagg = tag --sort="version:refname"
tl = log --tags --simplify-by-decoration --pretty=format:"%C(green)%h\\ %C(yellow)[%ai]\\ %C(red)%d"
brrr = for-each-ref --sort='-authordate:iso8601' --format=' %(authordate:relative)%09%(refname:short)' refs/heads
ca = commit --amend
ch = log --pretty=format:"*\\ (%h)\\ %s" --no-merges
cot = "!f() { git switch -c ${1#origin/} --track origin/${1#origin/}; }; f"
pushu = push -u
[diff]
algorithm = patience
compactionHeuristic = true
[core]
editor = vim
excludesfile = ~/.gitignore_global
[grep]
extendRegexp = true
lineNumber = true
[push]
default = current
[checkout]
defaultRemote = origin
[branch]
autosetuprebase = always
[filter "media"]
required = true
clean = git media clean %f
smudge = git media smudge %f
[url "ssh://git@github.com/"]
insteadOf = https://github.com/
[credential]
helper = osxkeychain
[rerere]
enabled = true
[filter "lfs"]
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
process = git-lfs filter-process
required = true
[pager]
diff = delta
log = delta
reflog = delta
show = delta
[interactive]
diffFilter = delta --color-only --features=interactive
[delta]
features = side-by-side line-numbers decorations
whitespace-error-style = 22 reverse
[delta "interactive"]
keep-plus-minus-markers = false
[delta "decorations"]
commit-decoration-style = blue ol
commit-style = raw
file-style = omit
hunk-header-decoration-style = blue box
hunk-header-file-style = red
hunk-header-line-number-style = "#067a00"
hunk-header-style = file line-number syntax