-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitconfig
114 lines (71 loc) · 1.9 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
106
107
108
109
110
111
112
113
114
[user]
name = "Connor Vanderhook"
email = 14183191+cnnrrss@users.noreply.github.com
signingkey = D045C02345FB5086
[alias]
# View abbreviated SHA, description, and history graph of the latest 20 commits
l = log --pretty=oneline -n 20 --graph --abbrev-commit
# Commit all changes
ca = !git add -A && git commit -av
# Show verbose output about tags, branches or remotes
tags = tag -l
branches = branch -a
remotes = remote -v
# List aliases
aliases = config --get-regexp alias
# Amend the currently staged files to the latest commit
amend = commit --amend --reuse-message=HEAD
# Remove branches that have already been merged with master
# a.k.a. ‘delete merged’
dm = "!git branch --merged | grep -v '\\*' | xargs -n 1 git branch -d"
# List contributors with number of commits
contributors = shortlog --summary --numbered
hash = rev-parse --short HEAD
# Diff staged
ds = diff -c HEAD
[apply]
# Detect whitespace errors when applying a patch
whitespace = fix
[color]
ui = true
[help]
autocorrect = 1
[pull]
rebase = false
[core]
editor = vim
pager = delta
excludesfile = ~/.gitignore_global
[delta]
side-by-side = true
line-numbers = true
plus-style = syntax "#003800"
minus-style = syntax "#3f0001"
#hunk-header-style = omit
[delta "line-numbers"]
line-numbers-left-style = cyan
line-numbers-right-style = cyan
line-numbers-minus-style = 124
line-numbers-plus-style = 28
[interactive]
diffFilter = delta --color-only
[diff]
tool = delta
[difftool]
prompt = false
[init]
defaultBranch = main
[url "git@github.com:"]
insteadOf = "gh:"
pushInsteadOf = "github:"
pushInsteadOf = "git://github.com/"
[url "git://github.com/"]
insteadOf = "github:"
[url "git@gist.github.com:"]
insteadOf = "gst:"
pushInsteadOf = "gist:"
pushInsteadOf = "git://gist.github.com/"
[url "git://gist.github.com/"]
insteadOf = "gist:"
[push]
autoSetupRemote = true