-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathgitconfig
87 lines (71 loc) · 1.83 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
[user]
name = John Weachock
email = [email protected]
[core]
# pager = ~/dots/bin/vimpager
abbrev = 4
[blame]
date = short
[color]
ui = true
branch = auto
diff = auto
status = auto
[color "branch"]
current = cyan bold
local = blue bold
remote = red bold
[color "diff"]
plain = white
meta = cyan bold
frag = cyan
old = red
new = green
commit = black bold
[color "status"]
added = green
changed = blue bold
untracked = cyan bold
branch = blue
# how the hell do I un-boold these things?
# it seems like they've still got the bolds
# from other places
[color "decorate"]
branch = blue
remoteBranch = red
HEAD = cyan
tag = magenta
stash = black
[alias]
ap = add -p
cia = commit --amend
bl = blame
br = branch
ci = commit
co = checkout
cp = cherry-pick
df = diff
dfs = diff --staged
fa = fetch --all --prune
poush = push
ppush = push
psuh = push
r = remote
rb = rebase
rba = rebase --abort
rbc = rebase --continue
rbi = rebase -i
st = status -s
pu = push -u origin HEAD
pf = !git fetch --all --prune && git reset --soft origin/$(git branch --show-current)
head = !git log --pretty=format:'%C(bold blue)%h%C(auto)%d' -1 && git log --pretty=format:'%C(white)%an • %ad%C(reset) %C(bold black)(%an)%C(reset)' --date=local -1 && git log --pretty=format:%s -1 && echo && git status -s
top = log --pretty=format:'%C(bold blue)%h%C(reset)%C(auto)%d%C(reset) %C(bold black)(%ad)%C(reset)' --abbrev-commit --all --graph --simplify-by-decoration --date-order --date=short
l = log --pretty=format:'%C(bold blue)%h%C(reset)%C(cyan)% D%C(reset) %s %C(white)%ad%C(reset) %C(bold black)%an%C(reset)' --abbrev-commit --abbrev=0 --date-order --date=short -30
lr = !git l --graph
lra = !git lr --all
[push]
default = simple
[pull]
ff = only
[init]
defaultBranch = main