-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitconfig
64 lines (64 loc) · 1.61 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
[user]
name = Marian Posaceanu
email = [email protected]
[github]
user = dakull
[hub]
protocol = https
[core]
whitespace = fix,-indent-with-non-tab,trailing-space,cr-at-eol
editor = vim -f
autocrlf = input
excludesfile = .DS_Store
[web]
browser = open
[push]
config = default
default = tracking
[color]
diff = auto
status = auto
branch = auto
interactive = auto
ui = true
pager = true
[color "branch"]
current = yellow reverse
local = yellow
remote = green
[color "diff"]
meta = blue
frag = magenta
old = red
new = green
[color "status"]
added = yellow
changed = green
untracked = blue
[alias]
b = browse
d = diff
ds = diff --staged
dw = diff --color-words
s = status -s -b
c = commit -v
co = checkout
cp = cherry-pick
w = whatchanged --decorate
wp = whatchanged --decorate -p
a = add -u
aa = add --all :/
td = merge --no-ff
sm = submodule
smu = submodule foreach git pull origin master
ap = add -u -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"
bam = "!source ~/.githelpers && delete_local_merged_branches"
bamr = "!source ~/.githelpers && delete_remote_merged_branches"
summary = "!source ~/.githelpers && weekly_summary"
# original
# l = log --pretty='format:%C(yellow)%h %C(blue)%ad %C(reset)%s%C(red)%d %C(green)%an%C(reset), %C(cyan)%ar' --date=short
l = log --pretty='format:%C(yellow)%h %C(reset)%s%C(red)%d %C(green)%an%C(reset), %C(cyan)%ar' --date=short
pom = push origin master
phm = push heroku master