-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathgitconfig
59 lines (57 loc) · 1.37 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
[color]
ui = auto
[color "branch"]
current = yellow reverse
local = yellow
remote = green
[color "diff"]
meta = yellow bold
frag = magenta bold
old = red bold
new = green bold
[color "status"]
added = yellow
changed = green
untracked = cyan
[user]
name = Andrew Johnstone
email = [email protected]
[github]
user = ajohnstone
[hub]
protocol = https
[advice]
statusHints = true
[push]
config = default
default = tracking
[rebase]
autosquash = true
[merge]
summary = true
[alias]
a = add -u
aa = add -A
ap = add -u -p
c = commit -v
co = checkout
d = diff
df = diff
ds = diff --staged
dw = diff --color-words
l = log --pretty='format:%C(yellow)%h%C(reset) %C(blue)%ad%C(reset) %s%C(red)%d%C(reset) %C(green)%an%C(reset), %C(cyan)%ar%C(reset)' --date=short
lg = log -p
lol = log --graph --decorate --pretty=oneline --abbrev-commit
lola = log --graph --decorate --pretty=oneline --abbrev-commit --all
s = status -s -b
sm = submodule
smu = submodule foreach git pull origin master
st = status
td = merge --no-ff
w = whatchanged --decorate
wp = whatchanged --decorate -p
pr = "!f() { git fetch origin refs/pull/$1/head:pr/$1 && git co pr/$1; } ; f"
up = "!git fetch upstream && git rebase upstream/master"
[branch "master"]
remote = origin
merge = refs/heads/master