-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitconfig
92 lines (85 loc) · 2.08 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
[alias]
# General
s = status
a = add
aa = add --all
c = commit
p = push
pu = "!f() { git push -u origin `git branch | grep '*' | awk '{print $2}'`; }; f"
pun = "!f() { git push --no-verify -u origin `git branch | grep '*' | awk '{print $2}'`; }; f"
d = diff
dc = diff --cached
amend = commit --amend --no-edit
# pickaxe, search all commit contents for string
px = log -p -S
dbs = !git diff --stat $(git merge-base HEAD develop)
# branch
b = branch
bd = branch -D
ch = checkout
chb = checkout -b
# stash
st = stash
sts = stash save
stl = stash list
sta = "!f() { git stash apply stash@{$1}; }; f"
std = "!f() { git stash drop stash@{$1}; }; f"
stsh = "!f() { git stash show -p stash@{$1}; }; f"
low = "!f() { echo 'To the window, to the wall'; }; f"
l = log --oneline --graph --decorate
lp = log --pretty=format:'%h %ad | %s%d [%an]' --graph --date=short
prune = remote prune origin
[branch]
autosetuprebase = always
[core]
# Use custom `.gitignore`
excludesfile = ~/.gitignore
# Treat spaces before tabs, lines that are indented with 8 or more spaces, and all kinds of trailing whitespace as an error
whitespace = space-before-tab,trailing-space
editor = nvim
[color]
# Use colors in Git commands that are capable of colored output when outputting to the terminal
ui = true
[color "branch"]
current = yellow reverse
local = yellow
remote = green
[color "diff"]
meta = yellow
frag = magenta bold
old = red bold
new = green bold
commit = yellow bold
[color "status"]
added = yellow
changed = green
untracked = cyan
[delta]
side-by-side = true
[filter "hawser"]
clean = git hawser clean %f
smudge = git hawser smudge %f
required = true
[pager]
diff = delta
log = delta
reflog = delta
show = delta
[push]
default = simple
[pull]
rebase = true
[rebase]
stat = true
[rerere]
enabled=true
[user]
name = guyfedwards
email = [email protected]
[color "diff-highlight"]
oldNormal = red bold
oldHighlight = red bold 52
newNormal = green bold
newHighlight = green bold 22
[init]
defaultBranch = master