-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitconfig
64 lines (58 loc) · 1.42 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
#[http]
# proxy = https://0.0.0.0:8080
[user]
name =
email =
[url "github.com:"]
InsteadOf = https://github.com/
InsteadOf = [email protected]:
[color]
status = auto
diff = auto
branch = auto
interactive = auto
grep = auto
[push]
default = tracking
[core]
excludesfile = ~/.gitignore
autocrlf = input
[alias]
st = status
sh = show
so = remote show origin
ft = fetch
up = pull --rebase
rbm = rebase master
ad = add
ci = commit -a
cam = commit -a --amend
co = checkout
br = branch
ba = branch -a
bm = branch --merged
bn = branch --no-merged
wc = whatchanged
ls = log --stat
lp = log -p
la = log --pretty=\"format:%ad %h (%an): %s\" --date=short
lr = log origin
oneline = log --pretty=oneline
ranking = shortlog -s -n --no-merges
log-graph = log --graph --date=short --pretty=format:'%Cgreen%h %cd %Cblue%cn %Creset%s'
log-all = log --graph --all --color --pretty='%x09%h %cn%x09%s %Cred%d%Creset'
dm = diff master
dw = diff --color-words
dc = diff --cached
ds = diff --staged
d1 = diff HEAD~
d2 = diff HEAD~~
d3 = diff HEAD~~~
d4 = diff HEAD~~~~
d5 = diff HEAD~~~~~
d10 = diff HEAD~~~~~~~~~~
edit-unmerged = "!f() { git ls-files --unmerged | cut -f2 | sort -u ; }; vim `f`"
add-unmerged = "!f() { git ls-files --unmerged | cut -f2 | sort -u ; }; git add `f`"
gr = grep
gn = grep -n
submodule-upgrade = submodule foreach git pull origin master