/
gitconfig
92 lines (78 loc) · 2.56 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
; vi: set filetype=dosini nowrap:
[user]
name = Justin Force
email = justin.force@gmail.com
signingkey = 0x203EABFA
; Credentials are stored in ~/.git-credentials. The format for a credentials
; entry looks like this:
;
; https://usename:password@example.com
;
; For GitHub the token is the username, and there is no password:
;
; https://0123456789afcdef:@github.com
[credential]
helper = store
[color]
ui = auto
[alias]
a = add
aa = add --all
alias = !~/bin/git_aliases
aliases = !~/bin/git_aliases
b = branch
branches-with-commit = branch --all --contains
branches-with-file = "!f() { git commits-with-file $1 | awk '{print $1}' | xargs -n1 git branches-with-commit | sort | uniq; }; f"
bwc = !git branches-with-commit
bwf = !git branches-with-file
cdf = clean -df
ci = commit
co = checkout
commits-with-file = "!f() { if [ -t 1 ]; then pretty='format:%C(yellow)%h%Creset %s'; else pretty='format:%h %s'; fi; git log --all --pretty=\"$pretty\" -- $@ ; }; f"
cwf = !git commits-with-file
d = diff
dc = diff --cached
f = fetch origin --prune
ff = merge origin/master master --ff-only
fuckit = !git reset --hard HEAD && git clean -df
l = log --stat
last = log -p -n1
lol = log --graph --decorate --pretty=oneline --abbrev-commit
lola = log --graph --decorate --pretty=oneline --abbrev-commit --all
pl = pull --rebase
ps = push
s = status --short
sha = rev-parse --short HEAD
shal = rev-parse HEAD
shacp = !git shal | pbcopy
[rerere]
enabled = true
[core]
excludesfile = ~/.gitignore_global
editor = nvim
[web]
browser = google-chrome
[diff]
tool = vimdiff
conflictstyle = diff3
prompt = false
[merge]
tool = vimdiff
conflictstyle = diff3
prompt = false
[filter "media"]
clean = git media clean %f
smudge = git media smudge %f
required = true
[hub]
protocol = https
[init]
templatedir = ~/.git_template
; Automatically added by something? Probably the post-install script for git
; from Homebrew. Large file storage settings. Aliases? I don't even know.
; https://git-lfs.github.com/
[filter "lfs"]
clean = git-lfs clean %f
smudge = git-lfs smudge %f
required = true
; vi: set noexpandtab: