-
Notifications
You must be signed in to change notification settings - Fork 6
/
gitconfig
91 lines (81 loc) · 2.94 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
[core]
editor = vim
excludesfile = ~/.gitignore
pager = `git --exec-path`/../../share/git-core/contrib/diff-highlight/diff-highlight | less
preloadindex = true
[user]
email = [email protected]
name = Jordan Lewis
signingkey = 3A08059A
[github]
user = jordanlewis
[color]
ui = auto
[alias]
ci = commit
co = checkout
st = status
ls = list
d = diff
dc = diff --cached
lg = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative
ll = log --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --numstat --date=relative
changes = diff --name-status -r
diffstat = diff --stat -r
who = shortlog -s --no-merges --
whois = "!sh -c 'git log -i -1 --pretty=\"format:%an <%ae>\n\" --author=\"$1\"' -"
whatis = show -s --pretty='tformat:%h (%s, %ad)' --date=short
unstage = reset HEAD --
review = push origin HEAD:refs/for/master
rpull = pull --rebase
edit = "!sh -c \"exec vim $(git list $@ | tr '\n' ' ')\""
fpr = "!f() { git fetch ${2:-origin} refs/pull/$1/head:pr/$1; }; f"
freview = "!f() { git fetch origin refs/reviewable/pr$1/r$2:review/pr$1/r$2; }; f"
fa = "!f() { git remote | xargs -t -P 8 -n1 git fetch --prune; }; f"
b = for-each-ref --sort=-committerdate refs/heads/ --format='%(HEAD) %(color:yellow)%(refname:short)%(color:reset) - %(color:red)%(objectname:short)%(color:reset) - %(contents:subject) - %(authorname) (%(color:green)%(committerdate:relative)%(color:reset))'
branch-prune = "!git branch --merged | egrep -v \"(^\\*|master)\" | xargs git branch -d #"
last = for-each-ref --sort=-committerdate --count=20 --format='%(align:30,left)%(refname:short)%(end)%(committerdate:relative)' refs/heads/
cane = commit --amend --no-edit
[merge]
conflictstyle = diff3
defaultToUpstream = true
log = true
[rerere]
enabled = 1
[push]
default = current
[pull]
rebase = true
[rebase]
autosquash = true
autostash = true
preserve = true
stat = true
[help]
autocorrect = 1
[diff]
colormoved = zebra
tool = vimdiff
compactionHeuristic = true
[difftool]
prompt = false
[difftool "delta"]
cmd = delta "$LOCAL" "$REMOTE" "$MERGED"
[pager]
log = `git --exec-path`/../../share/git-core/contrib/diff-highlight/diff-highlight | less
show = `git --exec-path`/../../share/git-core/contrib/diff-highlight/diff-highlight | less
diff = `git --exec-path`/../../share/git-core/contrib/diff-highlight/diff-highlight | less
[interactive]
diffFilter = `git --exec-path`/../../share/git-core/contrib/diff-highlight/diff-highlight
singleKey = true
[filter "lfs"]
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
required = true
process = git-lfs filter-process
[commit]
#gpgsign = true
[http]
cookiefile = /Users/jordan/.gitcookies
[cockroachdb]
disable-commit-template = true