-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgitconfig
More file actions
50 lines (50 loc) · 2.38 KB
/
Copy pathgitconfig
File metadata and controls
50 lines (50 loc) · 2.38 KB
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
[user]
name = Ben Tucker
email = ben@tucker.org
signkey = 6F3B35EC05B84927
[core]
excludesfile = ~/.gitignore_global
autocrlf = input
pager = delta --dark --24-bit-color
[color]
ui = auto
[gpg]
program = gpg2
[alias]
linelog = log --pretty=oneline
logahead = log --pretty=oneline origin..HEAD
logbehind = log --pretty=oneline HEAD..origin
logtoday = log @{yesterday}..HEAD
olog = !sh -c 'git linelog $0..HEAD $1 $2 $3 $4'
ilog = !sh -c 'git linelog HEAD..$0 $1 $2 $3 $4'
rlog = !sh -c 'git log $0..HEAD --reverse $1 $2 $3 $4'
logd = log --decorate
logg = log --decorate --graph
loga = log --decorate --graph --all
loggg = log --decorate --graph --oneline
logaa = log --decorate --graph --all --oneline
logc = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %C(bold blue)<%an> %Cgreen%ar%Creset, %C(bold blue)<%an> %Creset%Cgreen%cr%Creset' --abbrev-commit
logt = log --graph --all --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %C(bold blue)<%an> %Cgreen%ar%Creset, %C(bold blue)<%an> %Creset%Cgreen%cr%Creset' --abbrev-commit
graphviz = "!f() { echo 'digraph git {' ; git log --pretty='format: %h -> { %p }' \"$@\" | sed 's/[0-9a-f][0-9a-f]*/\"&\"/g' ; echo '}'; }; f"
graphlog = "!f() { git graphviz | dot -Tsvg -o git-graph.$(date '+%s').svg /dev/stdin; }; f"
whois = "!sh -c 'git log -i -1 --pretty=\"format:%an <%ae>\n\" --author=\"$1\"' -"
whatis = show -s --pretty='tformat:%h (%s, %ad)' --date=short
cleanup-whitespace = "!f() { git diff --cached --name-only | xargs sed -i -r 's/\\s+'\\$'//'; }; f"
cleanup-whitespace-soft = "!f() { git diff --cached --name-only | xargs sed -i -r 's/[ \\t]+(\\s+'\\$')/\\1/'; }; f"
cleanup-whitespace-m2 = "!f() { git ls-files | xargs sed -i -r 's/\\s+'\\$'//'; }; f"
convert-indent-4Tab = "!f() { git diff --cached --name-only | xargs sed -i -r ':repeat; s/^(\\t*)\\s{4}/\\1\\t/; t repeat'; }; f"
diff-branch = "!f() { git diff $(git merge-base $1 $2)..$2; }; f"
diff-branch-cached = "!f() { git diff --cached $(git merge-base $1 HEAD); }; f"
log-branch = "!f() { git log $(git merge-base $1 $2)..$2; }; f"
[push]
default = current
[rerere]
enabled = true
[interactive]
diffFilter = delta --color-only
[diff]
tool = vimdiff
[alias]
vimdiff = "!GIT_PAGER=" GIT_EXTERNAL_DIFF="git_diff_wrapper.sh git diff"
[merge]
tool = vimdiff