-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.gitconfig
More file actions
198 lines (168 loc) · 5.24 KB
/
.gitconfig
File metadata and controls
198 lines (168 loc) · 5.24 KB
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
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
# This is Git's per-user configuration file.
[user]
name = Christopher Patti
email = feoh@feoh.org
# Please adapt and uncomment the following lines:
# name = Christopher Patti
# email = feoh@feoh.org
[includeIf "gitdir:~/src/personal/gloria"]
path = .gitconfig-gloria
# Branch and Repository Management
[branch]
# Sort branches by most recently committed
sort = -committerdate
[tag]
# Sort tags by version number
sort = version:refname
[init]
# Set default branch name to main
defaultBranch = main
[push]
# Push only current branch to upstream
default = simple
# Automatically set up remote tracking
autoSetupRemote = true
# Push tags along with branches
followTags = true
# Push to matching named branches
default = matching
[fetch]
# Remove remote-tracking branches that no longer exist
prune = true
# Remove tags that no longer exist
pruneTags = true
# Fetch all remotes
all = true
# Pull the tags as well
tags = true
[pull]
# Use rebase instead of merge when pulling
rebase = true
[merge]
# Use meld as merge tool
tool = meld
# Use zdiff3 style conflict markers
conflictstyle = zdiff3
# Commit and Rebase Settings
[commit]
# Show diff when editing commit message
verbose = true
# Sign commits with GPG
# Needs fix :)
gpgsign = false
[rebase]
# Automatically squash commits marked as squash
autoSquash = true
# Automatically stash/unstash changes when rebasing
autoStash = true
# Update refs during rebase
updateRefs = true
[rerere]
# Remember resolved conflicts
enabled = true
# Automatically update index with resolved conflicts
autoupdate = true
# Helper and URL Settings
[help]
# Prompt for autocorrection of mistyped commands
autocorrect = prompt
[url "git@github.com:"]
# Use SSH instead of HTTPS for GitHub
insteadof = github:
[credential "https://github.com"]
helper = !/usr/bin/gh auth git-credential
[credential "https://gist.github.com"]
helper = !/usr/bin/gh auth git-credential
[credential "https://github.mit.edu"]
helper = !/usr/bin/gh auth git-credential
# User and Platform Settings
[github]
user = feoh
[gitlab]
user = feoh
[mirror]
summary = true
# Git Aliases
[alias]
# Branch operations
b = branch
bc = checkout -b
bl = branch -v
bL = branch -av
bx = branch -d
bX = branch -D
bm = branch -m
bM = branch -M
bs = show-branch
bS = show-branch -a
# Checkout operations
co = checkout
com = checkout master
co0 = checkout HEAD --
# Fetch operations
f = fetch
fm = pull
fo = fetch origin
# Merge operations
m = merge
mom = merge origin/master
# Push operations
p = push
pa = push --all
pt = push --tags
ph = push origin HEAD
# Rebase operations
r = rebase
ra = rebase --abort
rc = rebase --continue
ri = rebase --interactive
rs = rebase --skip
rom = rebase origin/master
# Commit operations
c = commit -v -S
ca = commit --all -v -S
cm = commit --message -S
cam = commit --all --message -S
camend = commit --amend --reuse-message HEAD -S
commit = commit -S
cundo = reset --soft "HEAD^"
cp = cherry-pick -x
# Diff operations
d = diff # Diff working dir to index
ds = diff --staged # Diff index to HEAD
dc = diff --staged # Diff index to HEAD
dh = diff HEAD # Diff working dir and index to HEAD
hub = browse
hubd = compare
# Index operations
s = status
a = add
ia = add
ir = reset
# Log operations
l = log --topo-order --pretty=format:'%C(yellow)%h %C(cyan)%cn %C(blue)%cr%C(reset) %s'
ls = log --topo-order --stat --pretty=format:'%C(bold)%C(yellow)Commit:%C(reset) %C(yellow)%H%C(red)%d%n%C(bold)%C(yellow)Author:%C(reset) %C(cyan)%an <%ae>%n%C(bold)%C(yellow)Date:%C(reset) %C(blue)%ai (%ar)%C(reset)%n%+B'
ld = log --topo-order --stat --patch --full-diff --pretty=format:'%C(bold)%C(yellow)Commit:%C(reset) %C(yellow)%H%C(red)%d%n%C(bold)%C(yellow)Author:%C(reset) %C(cyan)%an <%ae>%n%C(bold)%C(yellow)Date:%C(reset) %C(blue)%ai (%ar)%C(reset)%n%+B'
lg = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit
lga = log --topo-order --all --graph --pretty=format:'%C(yellow)%h %C(cyan)%cn%C(reset) %s %C(red)%d%C(reset)%n'
lm = log --topo-order --pretty=format:'%s'
lh = shortlog --summary --numbered
llf = fsck --lost-found
lcsv = log --pretty=format:%h,%an,%ai,%s
lg1 = log --graph --abbrev-commit --decorate --date=relative --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(bold yellow)%d%C(reset)' --all
lg2 = log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold cyan)%aD%C(reset) %C(bold green)(%ar)%C(reset)%C(bold yellow)%d%C(reset)%n'' %C(white)%s%C(reset) %C(dim white)- %an%C(reset)' --all
# Remote operations
re = remote
rel = remote --verbose
rea = remote add
rex = remote rm
rem = remote rename
# Miscellaneous
w = whatchanged
search = "!f() { query=\"$1\"; shift; git log -S\"$query\" \"$@\"; }; f \"$@\""
rdiff = diff --summary head
stat = diff --summary head
mt = mergetool
rc = rebase --continue
pr = pull-request
smc = log --author=\"Chris Patti\" --grep=\"$1\"