-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.gitconfig
More file actions
47 lines (40 loc) · 895 Bytes
/
Copy path.gitconfig
File metadata and controls
47 lines (40 loc) · 895 Bytes
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
# ~/.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
a = add
aa = add --all
b = branch
ba = branch -a
cm = commit -v
ss = status -s
ll = log --oneline --graph --decorate --all
ap = "!f() { git status --short | sk | choose 1 | 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