-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdot_gitconfig.tmpl
120 lines (120 loc) · 3.24 KB
/
dot_gitconfig.tmpl
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
[user]
email = {{ (dig "git" "email" "" .) }}
name = {{ (dig "git" "name" "" .) | quote }}
signingkey = "key::{{ (dig "git" "signingKey" "" .) }}"
editor = nvim
[core]
whitespace=fix,-indent-with-non-tab,trailing-space,cr-at-eol
excludesfile = ~/.gitignore
pager = delta
quotepath = false
autocrlf = input
[gpg]
format = ssh
[gpg "ssh"]
allowedSignersFile = ~/.ssh/allowed-signers
[commit]
gpgsign = true
[github]
user = {{ (dig "git" "githubUser" "" .) }}
[url "ssh://[email protected]/"]
insteadOf = https://github.com/
[push]
default = current
autoSetupRemote = true
[color]
ui = auto
[color "branch"]
current = yellow reverse
local = yellow
remote = cyan
[color "diff"]
meta = yellow bold
frag = magenta bold
old = red bold
new = cyan
whitespace = red reverse
[color "status"]
added = yellow
changed = green
untracked = cyan
[alias]
alias = !git config -l | grep ^alias | cut -c 7- | sort
br = !"git checkout $(git branch-select)"
branch-commit-diff = !"f() { git log --graph --abbrev-commit --date=relative master..$@; }; f"
branch-diff = !"f() { git diff master $@; }; f"
branch-select = !"git branch | fzf | tr -d '[:space:]\\*'"
branch-toggle = checkout -
cat = -p cat-file -p
changelog = log --pretty=format:\" * %s\"
ci = commit
co = checkout
dc = diff --cached
df = diff
diff-last-commit = diff HEAD^ HEAD
show-diff = !"f() { git diff $1^!; }; f"
ds = diff --stat
home = rev-parse --show-toplevel
in = !git fetch && git log --pretty=oneline --abbrev-commit --graph ..@{upstream}
last = cat-file commit HEAD
lg = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative
log-last = log -n 1
lol = log --decorate --pretty=oneline --abbrev-commit
ls = ls-files
ls-ignored = ls-files --exclude-standard --ignored --others
main = !"git checkout master || git checkout main"
out = log --graph --oneline --pretty=format:'%Cred%h%Cgreen %cd %Creset- %s' --abbrev-commit --date=relative --graph @{upstream}..
pr = !"pr() { git fetch origin pull/$1/head:pr-$1; git checkout pr-$1; }; pr"
prune = fetch --prune
push-and-pr = !git push && git open-pr
root = rev-parse --show-toplevel
sa = stash apply
sd = stash show --patch
since = !git log $(git merge-base --fork-point master)..HEAD
sl = stash list
sp = stash pop
ss = stash save
st = status -sb
stash-all = stash save --include-untracked
uncommit = reset --soft HEAD^
unstage = reset HEAD
[advice]
statusHints = false
[merge]
stat = true
conflictstyle = diff3
summary = true
[diff]
tool = delta
renames = copies
mnemonicprefix = true
noprefix = true
colorMoved = default
[diff "exif"]
textconv = exif
path =
[credential]
helper = osxkeychain
[help]
autocorrect = 1
[pull]
default = current
; rebase = true
[init]
defaultBranch = main
[interactive]
diffFilter = delta --color-only
[include]
path = ~/.config/delta/themes.gitconfig
[delta]
navigate = true
line-numbers = true
side-by-side = true
syntax-theme = Monokai Extended Bright
[diff-so-fancy]
markEmptyLines = false
[filter "lfs"]
process = git-lfs filter-process
required = true
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f