-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.gitconfig
More file actions
executable file
·68 lines (55 loc) · 1.45 KB
/
.gitconfig
File metadata and controls
executable file
·68 lines (55 loc) · 1.45 KB
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
[user]
name = Ash Connolly
email = ashconnollydigital@gmail.com
[help]
autocorrect = 1
[alias]
cm = !sh -c 'git commit -m \"$(git rev-parse --abbrev-ref HEAD | cut -d '/' -f2 | cut -d '_' -f 1 | grep -i "^[a-z]*-[0-9]*" -o) $@\"' -
l = log --pretty=oneline -n 20 --graph --abbrev-commit
s = status -s
a = add -A
y = "!f() { for branch in $(git branch); do git log --after='$(date -d \"2 days ago\" \"+%Y-%m-%d 00:01\")' --author=\"$(git config user.name)\" --pretty=\"%s\" --abbrev-commit --no-merges $branch; done; }; f | sort -u"
c = "!f() { git commit -S -m \"$*\"; }; f"
[credential]
helper = osxkeychain
[push]
default = simple
# [color]
# branch = auto
# diff = auto
# status = auto
# [color "diff"]
# # meta = yellow bold
# frag = magenta bold
# old = red bold
# new = green bold
# diff-so-fancy --------
[color]
ui = true
[color "branch"]
current = yellow reverse
local = yellow
remote = green
[color "status"]
added = green bold
changed = red bold
removed = red bold
untracked = green bold
[color "diff-highlight"]
oldNormal = red bold
oldHighlight = red bold 52
newNormal = green bold
newHighlight = green bold 22
[color "diff"]
meta = 11
frag = magenta bold
func = 146 bold
commit = yellow bold
old = red bold
new = green bold
whitespace = red reverse
[core]
pager = diff-so-fancy | less --tabs=4 -RFX
[interactive]
diffFilter = diff-so-fancy --patch
# diff-so-fancy ---------