-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitconfig
67 lines (58 loc) · 1.81 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
[user]
name = Shwetank Dave
email = [email protected]
[core]
editor = "/usr/bin/vi"
[alias]
lo = log --oneline
lg = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cd) %C(bold blue)<%an>%Creset' --abbrev-commit --
lwg = log --graph --pretty=format:'%Cred%h%Creset %C(yellow)%an%d%Creset %s %Cgreen(%cr)%Creset' --date=relative
st = status
p = push
sm = submodule
smstart = submodule update
sminit = submodule init
smup = submodule update
smpull = submodule foreach git pull origin master
mgnff = merge --no-ff --summary
cm = commit -a -v
co = checkout
ci = commit -v
br = branch
brnm = branch --no-merged
brm = branch --merged
cp = commit -p -v
last = log -1 HEAD
blame = blame -b
ds = diff --staged
fup = log --since '1 day ago' --oneline --author [email protected]
l = log
lh = log --graph
la = !git lh --date-order --all 2> /dev/null
lb = log --graph --simplify-by-decoration
lba = !git lb --all
h = !git --no-pager log --graph -n 15
a = !git --no-pager la -n 15
stash-unapply = !git stash show -p | git apply -R
stash-sv = !git stash save
[color]
diff = auto
status = auto
branch = auto
interactive = auto
[color "branch"]
current = yellow reverse
remote = green bold
local = blue bold
[color "diff"]
meta = blue bold
frag = magenta bold
old = red bold
new = green bold
[commit]
verbose = true
[push]
default = current
[merge]
tool = opendiff
;; git branch --merged | grep -v "\*" | xargs -n 1 git branch -d