-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitconfig
53 lines (40 loc) · 1.64 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
[user]
name = samudra
email = <name>@<domain>
[color]
ui = true
[core]
editor = vim
pager = less -FMRiX
[push]
default = simple
[mergetool]
prompt = false
keepTemporaries = false
[format]
pretty = %C(yellow)%h %C(cyan)%ae%x08%x08%x08%x08%x08%x08%x08%x08%x08%x08%x08%C(blue) %cd%x08%x08%x08%x08%x08%x08%C(reset)%C(magenta bold)%d%C(reset)%C(normal) %s
# And finally, some convenient, time-saving aliases I feel handicapped without.
[alias]
# This is my "git log". I don't want to fill my screen with the full log,
# so I limit it to the 10 most recent commits. I can simply do git lg -NNN
# if I want to see more, and of course the original "log" subcommand is
# still available for use.
lg = log -10
pr = !post-review --parent HEAD~1 --target-groups=krf,kindle-reader-framework
# This alias allows me to see the version of "git log" output before it was
# changes by format.pretty above
lgd = log --pretty=full --date=iso
# See the git log in graph form
lgg = log --graph --date=iso
br = branch
brd = branch -D # delete a branch
brm = branch -M # rename a branch
brc = checkout -b # create a new branch and switch to it immediately
cm = commit
co = checkout
st = status -sb
up = add -u
unstage = reset --
# I wonder if you can figure this out...
log-vgrep = "!pattern=$1 shift && git log --format='%H%x09%s' $@ | grep -v ""\"$pattern\""" | cut -f1 | git log --stdin --no-walk #"
dag = log --graph --format='format:%C(yellow)%h%C(reset) %C(blue)\"%an\" <%ae>%C(reset) %C(magenta)%ar%C(reset)%C(auto)%d%C(reset)%n%s' --date-order