-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.gitconfig
48 lines (42 loc) · 1.77 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
[core]
editor = vim
excludesfile = /home/tim/.gitignore_global
pager = less -F -X
[user]
name = timss
email = [email protected]
[color]
ui = true
branch = true
[credential]
helper = cache --timeout=3600
[push]
default = simple
[rebase]
autoStash = true
[diff]
tool = vimdiff
[difftool]
prompt = false
[alias]
# misc shorthands
s = status
d = difftool
dc = diff --cached
# fancy log views that'll blow your mind
ls = log --pretty=format:'%C(bold blue)%ad %C(bold magenta)%an %C(reset)%C(white)%s%C(reset) %C(reset)%C(bold yellow)%d%C(reset)' --decorate --date=relative
lg = lg-specific --all
lg1 = lg1-specific --all
lg2 = lg2-specific --all
lg3 = lg3-specific --all
lg-specific = log --graph --format=format:'%C(bold blue)%ad %C(bold magenta)%an %C(reset)%C(white)%s%C(reset) %C(reset)%C(bold yellow)%d%C(reset)' --abbrev-commit --decorate --date=short
lg1-specific = log --graph --format=format:'%C(bold green)%h %C(bold blue)%ad %C(bold magenta)%an %C(reset)%C(white)%s%C(reset) %C(reset)%C(bold yellow)%d%C(reset)' --abbrev-commit --decorate --date=short
lg2-specific = log --graph --format=format:'%C(bold green)%h%C(reset) %C(bold blue)%ad%C(bold white) %C(bold magenta)%an%C(reset)%C(bold yellow)%d%C(reset)%n''%w(79)%C(white)%s%C(reset) %C(reset)' --abbrev-commit --date=short
lg3-specific = log --graph --format=format:'%C(bold green)%h%C(reset) %C(bold blue)%ad%C(bold white) %C(bold magenta)%an%C(reset)%C(bold yellow)%d%C(reset)%n''%w(79)%C(white)%B%C(reset) %C(reset)%n' --abbrev-commit --date=short
# inspect last commit
dl = "!git lg2 -1"
dlc = diff --cached HEAD^
# find who worked on a file
who = shortlog -s
# finding file
f = "!git ls-files | grep -i"