-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgitconfig
65 lines (65 loc) · 1.87 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
[user]
name = Jakob Rath
email = [email protected]
[color]
ui = auto
[color "diff"]
commit = blue bold
meta = yellow
frag = cyan
func = 9 ul
old = red
new = green
whitespace = red reverse
[color "diff-highlight"]
oldNormal = red
oldHighlight = red bold 52
newNormal = green
newHighlight = green bold 22
[core]
excludesfile = ~/.gitignore-global
attributesFile = ~/.gitattributes-global
; NOTE: For the option "-F" to work properly we need "less" version >= 530
pager = diff-highlight | less -SF
[merge "gemfilelock"]
name = relocks the gemfile.lock
driver = bundle install
[alias]
st = status
co = checkout
last = log --decorate -1 HEAD
ld = log --decorate --pretty=oneline --abbrev-commit
ldd = log '--pretty=format:"%C(auto)[%ai] %h%d %s"' # like "ld" but with author date
lda = log '--pretty=format:"%C(auto)[%<(20,trunc)%an, %ai] %h%d %s"' # like "ld" but with author name&date
lg = log --decorate --pretty=oneline --abbrev-commit --graph --branches
lag = log --graph --date-order --format='format:%C(yellow)%h%C(reset) %C(blue)%an <%ae>%C(reset) %C(magenta)%cr%C(reset)%C(auto)%d%C(reset)%n%s'
d = diff
ds = diff --cached
dn = diff --no-index
dw = diff --word-diff
dsw = diff --cached --word-diff
[push]
default = simple
[include]
path = ~/.gitconfig-local
[filter "lfs"]
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
process = git-lfs filter-process
required = true
[diff]
colorMoved = dimmed-zebra
; [diff "pdf"]
; # Only metadata
; textconv = pdfinfo
; # Metadata and text content
; ; textconv="pdfinfo \"$1\"; pdftotext \"$1\" - #"
; cachetextconv = true
[difftool "pdf"]
cmd = diff-pdf --view \"$LOCAL\" \"$REMOTE\"
[diff "zip"]
textconv = unzip -c -a
[pull]
ff = only
[init]
defaultBranch = main