-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitconfig
47 lines (39 loc) · 894 Bytes
/
.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
# ~/.gitconfig
[core]
excludesfile = ~/.gitignore
editor = hx
ignorecase = false
[push]
default = simple
[color]
status = auto
diff = auto
branch = auto
interactive = auto
grep = auto
ui = auto
[alias]
co = checkout
d = diff
b = branch
ba = branch -a
cm = commit -v
ss = status -s
ll = log --oneline --graph --decorate --all
aa = add -A
ap = "!f() { git status --short | peco | awk '{print $2}' | xargs -o -I{} git add -p -- {}; }; f"
ph = push
pl = pull
pp = !git pull && git push
rpo = remote prune origin
open = "!gh repo view --web"
# edit conflicted file on merge
edit-unmerged = "!f() { git ls-files --unmerged | cut -f2 | sort -u ; }; hx $(f)"
# add conflicted file on merge
add-unmerged = "!f() { git ls-files --unmerged | cut -f2 | sort -u ; }; git add `f`"
[interactive]
singleKey = true
[github]
user = "TylerAdamMartinez"
[ghq]
root = ~/.ghq