-
Notifications
You must be signed in to change notification settings - Fork 0
/
gitconfig
74 lines (64 loc) · 1.76 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
65
66
67
68
69
70
71
72
73
74
[user]
name = Sawan Vithlani
email = [email protected]
[diff]
tool = p4merge
mnemonicprefix = true
[merge]
keepBackup = false
tool = p4merge
[mergetool "p4merge"]
cmd = p4merge "$BASE" "$LOCAL" "$REMOTE" "$MERGED" "$BASE"
keepTemporaries = false
trustExitCode = false
keepBackup = false
[core]
pager = most +s +'/---'
[branch]
autosetupmerge = true
[alias]
co = checkout
cob = checkout -b
st = status
stat = status
dt = difftool -y
mt = mergetool -y
lo = log --decorate --pretty='%Cblue %cn %Cgreen %s %Creset [%cr]: %h' -n 20
fall = fetch --all
fb = ! git branch -a | ack-grep
mas = checkout master
commit-reuse = commit -a --reuse-message=HEAD
commit-reuse-m = commit -a --reuse-message
commit-all = commit -a -m
sdiff = diff --ignore-all-space --name-status -C -M
stash-p = stash pop
stash-s = stash save
stash-l = stash list
pl-b = !sh -c 'CURRENT=$(git symbolic-ref HEAD |cut -d / -f 3) && git checkout $1 && git pull && git checkout $CURRENT' -
pl = !sh -c 'git checkout $1 && git pull' -
mpl = ! git checkout master && git pull origin master
mpu = ! git checkout master && git push origin master
mdiff = ! git sdiff master...
mf = ! git mpl-b && git merge master
tmdiff = diff master...
gmdiff = difftool -y master...
show-mdiff = git dt master...
show-diff = !sh -c 'git dt $1...' -
todo = commit --allow-empty -m "TODO: $*"
[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 bold
untracked = cyan
[push]
default = current