-
Notifications
You must be signed in to change notification settings - Fork 0
/
gitconfig
65 lines (53 loc) · 1.49 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
[user]
name = Alex Southgate
email = [email protected]
signingkey = A5E7E35C
[github]
user = southgate
[hub]
protocol = https
[push]
default = simple
[alias]
mybranches = "!f() { if test $# = 0 ; then set -- refs/remotes ; fi ; git for-each-ref --format='%(authordate:relative)\t%(refname:short)\t%(authoremail)' --sort=authordate \"$@\" | sed -ne \"s/\t<$(git config user.email)>//p\" | column -s '\t' -t ; } ; f"
co = checkout
ci = commit
pl = pull origin
pu = push origin
po = !sh -c 'git push -u origin `git rev-parse --abbrev-ref HEAD`'
fm = !git fetch && git merge origin/master
ap = add --patch
lg = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr)%Creset' --abbrev-commit --date=relative
l = log --oneline --stat
x = !github
undo = reset HEAD@{1}
unstage = reset HEAD --
[apply]
whitespace = nowarn
[format]
pretty = %C(yellow)%h%Creset %s %C(red)(%cr)%Creset
[credential]
helper = osxkeychain
[core]
excludesfile = /Users/alex/.gitignore
whitespace = trailing-space,space-before-tab,indent-with-non-tab
editor = code --wait
[diff]
tool = default-difftool
[difftool "default-difftool"]
cmd = code-insiders --wait --diff $LOCAL $REMOTE
[color]
ui = auto
[filter "media"]
required = true
clean = git media clean %f
smudge = git media smudge %f
[rerere]
enabled = true
[filter "lfs"]
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
process = git-lfs filter-process
required = true
[pull]
ff = only