-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathgitconfig
59 lines (57 loc) · 1.66 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
[user]
name = Grayson Wright
email = [email protected]
[color]
ui = true
[alias]
s = status --short
d = diff -w --patience
dc = diff --cached --patience
b = branch
a = add
ai = add --intent-to-add
ap = add -p
rh = reset HEAD
m = merge
c = commit -v
wip = commit -m 'WIP'
co = checkout
ma = checkout master
feat = checkout master -b
f = fetch
j = pull
J = pull -X theirs
pr = !"git rebase -i origin/master && git push -f && hub pull-request"
hound = !"git commit -m 'Fix PR suggestions' && git push"
changelog = !"git commit -m 'Update CHANGELOG.md' && git push"
k = push
kf = push --force-with-lease
rb = rebase
r = remote
h = help
i = !"$EDITOR .gitignore"
e = !"$EDITOR .git/info/exclude"
lg1 = log --graph --all --format=format:'%C(red)%h%C(reset) %C(cyan)(%ar)%C(reset) %s %C(yellow)-%aN%C(reset)%C(blue)%d%C(reset)' --abbrev-commit --date=relative
lg2 = log --graph --all --format=format:'%C(red)%h%C(reset) - %C(green)%aD%C(reset) %C(cyan)(%ar)%C(reset)%C(blue)%d%C(reset)%n'' %C(white)%s%C(reset) %C(yellow)— %an%C(reset)' --abbrev-commit
lg = !"git lg1"
st = stash
delete-branch = "!f() { git branch -d $1; git push origin :$1; }; f"
inspect = "!f() { git d $1^ `shift` \"$@\"; }; f"
edit = "!f() { $EDITOR `git status --short | sed 's/^.. //'`; }; f"
sst = stash save --keep-index
stage = push staging master
issues = browse -- issues
trust = !"mkdir .git/safe"
[commit]
template = ~/.gitmessage
[core]
editor = /usr/local/bin/nvim
excludesfile = ~/.gitignore
commentchar = |
[push]
default = current
[github]
user = graysonwright
[rerere]
autoupdate = true
enabled = true