-
Notifications
You must be signed in to change notification settings - Fork 1
/
.gitconfig
74 lines (65 loc) · 3.45 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 = Patrick T Anderson
email = [email protected]
[push]
default = current
[core]
editor = emacsclient
pager =
[merge]
tool = ediff
[format]
#pretty = format:%C(green)%cN %C(white)%cr %C(black)%s %C(blue)%h%C(reset)
pretty = %<(13,trunc)%cN %<(10,trunc)%cr | %s | %h | %D
# pretty = format:%C(auto,yellow)%h%C(auto,magenta)% G? %C(auto,blue)%>(12,trunc)%ad %C(auto,green)%<(7,trunc)%aN%C(auto,reset)%s%C(auto,red)% gD% D
[alias]
a = add
b = branch
c = checkout
cl = clone
co = checkout
d = diff
f = fetch
gr = log --graph --full-history --all --color --pretty=tformat:"%x1b[31m%h%x09%x1b[32m%d%x1b[0m%x20%s%x20%x1b[33m(%an)%x1b[0m"
l = log -30
m = merge
n = for-each-ref --count=30 --sort=-committerdate refs/remotes/ --format='%(color:green)%(committername) %(color:black)%(contents:subject) %(color:white) %(committerdate:relative) %(color:yellow)%(refname:short) %(color:blue)%(objectname:short)%(color:black)'
p = pull
pu = push
s = status
ishow = ! bash -c 'git show --pretty="format:" --name-only "$(git merge-base "$(git rev-parse --abbrev-ref HEAD)" master)..HEAD" | grep -v "^$" | sort | uniq' -
fshow = ! sh -c 'git show --pretty="format:" --name-only $1 | grep -v "^$" | uniq | sed -e "s#^#`git rev-parse --show-toplevel`/#"' -
lg1 = log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(bold yellow)%d%C(reset)' --all
lg2 = log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold cyan)%aD%C(reset) %C(bold green)(%ar)%C(reset)%C(bold yellow)%d%C(reset)%n'' %C(white)%s%C(reset) %C(dim white)- %an%C(reset)' --all
shortlog = format:%C(yellow)%h%C(magenta)% G? %C(blue)%>(12,trunc)%ad %C(green)%<(7,trunc)%aN%C(reset)%s%C(red)% gD% D
lo = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative
# lg = log --oneline --abbrev-commit --all --graph --decorate --color
# graph = log --graph --date-order -C -M '--pretty=format:\"<%h> %ad [%an] %Cgreen%d%Creset %s\"' --all --date=rfc
graph = log --graph --all --decorate --oneline
ll = log --pretty=format:"%C(yellow)%h%Cred%d\\ %Creset%s%Cgreen\\ n[%cn]" --decorate --numstat --date=rfc
undelete = log --graph --oneline --decorate $(git rev-parse $(git fsck --no-reflog | grep "dangling commit" | cut -f 3 -d ' ') --not HEAD)
find = grep --ignore-case --line-number -I
recent = !git for-each-ref --count 30 --sort=-committerdate refs/remotes/ --format='%(color:reset)%(color:yellow)%(subject) %(color:reset)%(color:green)%(refname:short) %(color:reset)%(color:black)%(committerdate:relative) %(color:reset)%(color:magenta)%(authorname)'
# lg = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative
lg = log --graph --pretty='%h -%d %s (%cr) %C(white) %cn %C(reset)' --abbrev-commit --date=relative
# black, red, green, yellow, blue, magenta, cyan, and white
[color]
ui = auto
branch = auto
diff = auto
status = 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
untracked = cyan
[credential]
helper = store