-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitconfig
98 lines (82 loc) · 2.22 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
[user]
name = Josh Beard
email = josh@joshbeard.me
signingkey = F9BE548EC3641B41
[commit]
gpgsign = true
# Overrides for work/professional use
[includeIf "gitdir:~/Projects/work/"]
path = ~/.gitconfig.work
[includeIf "gitdir:~/work/"]
path = ~/.gitconfig.work
[includeIf "gitdir:~/dev/work/"]
path = ~/.gitconfig.work
[core]
autocrlf = false
safecrlf = false
editor = nvim
excludesfile = ~/.gitignore
whitespace = cr-at-eol
[alias]
co = checkout
ci = commit
st = status
br = branch
lg = "log --pretty=format:'%C(yellow)%h%C(reset) %C(blue)%an%C(reset) %C(cyan)%cr%C(reset) %s %C(green)%d%C(reset) %C(red)%G? %GS %GK%C(reset)' --graph --date-order"
fa = "fetch --all"
type = cat-file -t
dump = cat-file -p
last = log -1 HEAD
ds = diff --staged
bv = branch -vv
l1 = log --oneline --decorate
# git reauthor $START..$END
#reauthor = !sh -c 'eval `git log --reverse --topo-order --pretty=format:\"git cherry-pick %H && git commit --amend -C %H --author=\\\"%aN <%aE>\\\" && \" $0 ` "echo success" '
mr = !sh -c 'git fetch $1 merge-requests/$2/head:mr-$1-$2 && git checkout mr-$1-$2' -
bls = for-each-ref --sort=committerdate refs/heads/ --format='%(committerdate:short) %(refname:short)'
blsr = for-each-ref --sort=-committerdate refs/heads/ --format='%(committerdate:short) %(refname:short)'
[color]
ui = auto
[color "branch"]
current = yellow reverse
local = yellow
remote = green
[color "diff"]
meta = yellow bold
frag = magenta bold
old = red bold
new = green bold
[color "status"]
added = green
changed = yellow
untracked = red
# I'm disabling this for performance
# It just adds a little prompt indicator of the repo status, but is
# painfully slow on massive repos.
[oh-my-zsh]
hide-status = 1
[push]
default = simple
[hub]
protocol = https
[github]
user = joshbeard
[filter "media"]
required = true
clean = git media clean %f
smudge = git media smudge %f
[filter "hawser"]
clean = git hawser clean %f
smudge = git hawser smudge %f
required = true
[filter "lfs"]
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
process = git-lfs filter-process
required = true
[credential "https://github.com"]
helper =
helper = !/usr/bin/gh auth git-credential
[credential "https://gist.github.com"]
helper =
helper = !/usr/bin/gh auth git-credential