-
Notifications
You must be signed in to change notification settings - Fork 4
/
.gitconfig
58 lines (58 loc) · 1.47 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
[user]
name = Andrew Johnson
email = andrew@andrewjamesjohnson.com
signingkey = /Users/ajohnson/.ssh/id_ed25519.pub
[github]
user = ajsquared
[color]
branch = auto
diff = auto
interactive = auto
status = auto
ui = true
[alias]
main-branch = !git symbolic-ref refs/remotes/origin/HEAD | cut -d'/' -f4
ap = add --patch
bl = blame -w
br = branch
c = commit -a -m
ci = commit
co = checkout
df = diff
l = log --graph --decorate
lg = log --decorate -p
lgg = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative
pom = !git push origin $(git main-branch)
po = "!git push --set-upstream origin \"$(git rev-parse --abbrev-ref HEAD)\""
fpush = "!git push -f origin \"$(git rev-parse --abbrev-ref HEAD)\""
pullr = pull --rebase
rpull = pull --rebase --stat
prom = !git pull --rebase --stat origin $(git main-branch)
s = status
unstage = reset
rim = !git rebase -i $(git main-branch)
amend = commit --amend
[push]
default = simple
autoSetupRemote = true
[core]
preloadindex = true
excludesfile = ~/.gitignore
pager = diff-so-fancy | less --tabs=4 -RF
[diff]
noprefix = true
[interactive]
diffFilter = diff-so-fancy --patch
[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