-
Notifications
You must be signed in to change notification settings - Fork 1
/
gitconfig
74 lines (74 loc) · 1.66 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
[user]
signingkey = 0x8C649FA0D2396E42
name = Lewis Denham-Parry
email = lewis@control-plane.io
[commit]
gpgsign = true
template = /home/lewis/.config/git/commit.txt
[filter "lfs"]
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
process = git-lfs filter-process
required = true
[alias]
lb = !git reflog show --pretty=format:'%gs ~ %gd' --date=relative | grep 'checkout:' | grep -oE '[^ ]+ ~ .*' | awk -F~ '!seen[$1]++' | head -n 10 | awk -F' ~ HEAD@{' '{printf(\" \\033[33m%s: \\033[37m %s\\033[0m\\n\", substr($2, 1, length($2)-1), $1)}'
lg = !git log --graph --pretty=oneline --abbrev-commit
fix-commit = commit --edit --file=.git/COMMIT_EDITMSG
commit-fix = commit --edit --file=.git/COMMIT_EDITMSG
logs = log --show-signature
[init]
defaultBranch = main
[pull]
rebase = true
# INCLUDES
# --------
# Local/Private config goes in the include
[include]
path = ~/.gitconfig.local
# URL ALIASES
# -----------
# Alias for Dracula Org repositories
[url "https://github.com/dracula/"]
insteadOf = dracula://
# COLORS
# ------
# Dracula Dark Theme
[color]
ui = auto
[color "branch"]
current = cyan bold reverse
local = white
plain =
remote = cyan
[color "diff"]
commit =
func = cyan
plain =
whitespace = magenta reverse
meta = white
frag = cyan bold reverse
old = red
new = green
[color "grep"]
context =
filename =
function =
linenumber = white
match =
selected =
separator =
[color "interactive"]
error =
header =
help =
prompt =
[color "status"]
added = green
changed = white
header =
localBranch =
nobranch =
remoteBranch = cyan bold
unmerged = magenta bold reverse
untracked = red
updated = green bold