-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitconfig
106 lines (97 loc) · 2.34 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
99
100
101
102
103
104
105
[user]
name = Logan McAnsh
email = logan@mcan.sh
signingkey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDofCoOQ1QeW6Tn4PXTLz0+vT14axGSIi9BXbaZZMTC+"
[push]
default = current
autoSetupRemote = true
[alias]
# show last commit's sha
sha = rev-parse HEAD
co = checkout
c = "commit -s"
p = push
# add and commit untracked files
a = "add -A"
s = status
# remove file from git
remove = "rm -r --cached"
d = diff
fix = "commit --fixup"
unstage ="reset --"
# list these aliases
la = "!git config -l | grep alias | cut -c 7-"
# shows files in current repo?
ll = log --pretty=format:"%C(yellow)%h%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate --numstat
# displays commits of current repo
ld = log --pretty=format:"%C(yellow)%h\\ %ad%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate --date=relative
# shows every branch's last commit absolute date
b = "!git for-each-ref --sort='-authordate' --format='%(authordate)%09%(objectname:short)%09%(refname)' refs/heads | sed -e 's-refs/heads/--'"
# lists files ignored using `git --assume-unchanged`
ignored = !git ls-files -v | grep "^[[:lower:]]"
[help]
autocorrect = 0
[credential]
helper = store
[commit]
gpgsign = true
[gpg]
format = ssh
[gpg "ssh"]
program = "/Applications/1Password.app/Contents/MacOS/op-ssh-sign"
[core]
excludesfile = ~/.gitignore
editor = code-insiders --wait
ignorecase = false
pager = delta
[delta]
side-by-side = true
syntax-theme = "GitHub"
[color]
pager = true
ui = true
status = auto
diff = auto
branch = auto
showBranch = auto
interactive = auto
grep = auto
[rebase]
autosquash = true
[interactive]
diffFilter = delta --color-only
# Enforce SSH
[url "ssh://git@github.com/"]
insteadOf = https://github.com/
[url "ssh://git@gitlab.com/"]
insteadOf = https://gitlab.com/
[url "ssh://git@bitbucket.org/"]
insteadOf = https://bitbucket.org/
[diff "lockb"]
textconv = bun
binary = true
[fetch]
prune = true
[color "diff-highlight"]
oldNormal = red bold
oldHighlight = red bold 52
newNormal = green bold
newHighlight = green bold 22
[color "diff"]
meta = 11
frag = magenta bold
commit = yellow bold
old = red bold
new = green bold
whitespace = red reverse
[filter "lfs"]
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
process = git-lfs filter-process
required = true
[pull]
rebase = true
[init]
defaultBranch = main
[tag]
gpgSign = true