-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy path.gitconfig
More file actions
32 lines (32 loc) · 984 Bytes
/
.gitconfig
File metadata and controls
32 lines (32 loc) · 984 Bytes
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
## use this [include] to import configs like this one:
#[include]
# path = ~/.dots/.gitconfig
[filter "media"]
required = true
clean = git media clean %f
smudge = git media smudge %f
[user]
name = Jeremy White
email = dudymas@gmail.com
[push]
default = upstream
[alias]
a = add
aa = add -A
b = branch
co = checkout
c = commit
cm = commit -m
ma = merge --abort
ra = remote add
ri = rebase -i
s = status
rr = remote remove
m = merge
dc = diff --cached
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)}'
gone = ! "git fetch -p && git for-each-ref --format '%(refname:short) %(upstream:track)' | awk '$2 == \"[gone]\" {print $1}' | xargs -r git branch -D"
[core]
excludesfile = ~/.dots/.gitignore
[rebase]
instructionFormat = %an (%cn) : %ar (%cr) | %s