-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitconfig
117 lines (92 loc) · 2.34 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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
[core]
editor = nvim -c 'startinsert'
whitespace = fix,-indent-with-non-tab,trailing-space,cr-at-eol
excludesfile = ~/.gitignore_global
# pager = less
[init]
defaultBranch = main
[push]
default = simple
# Automatically changes upstream to branch name
autoSetupRemote = true
# [difftool]
# prompt = true
#
# [diff]
# tool = nvimdiff
#
# [difftool "nvimdiff"]
# cmd = "nvim -d \"$LOCAL\" \"$REMOTE\""
#
# [merge]
# tool = vimdiff
#
# [mergetool]
# prompt = true
#
# [mergetool "vimdiff"]
# cmd = nvim -d $LOCAL $REMOTE $MERGED -c '$wincmd w' -c 'wincmd J'
# BEGIN difftastic
[diff]
tool = difftastic
external = difft
[difftool]
prompt = false
[difftool "difftastic"]
cmd = difft "$LOCAL" "$REMOTE"
# Use a pager for large output, just like other git commands.
[pager]
difftool = true
# `git dft` is less to type than `git difftool`.
[alias]
dft = difftool
# END difftastic
[filter "media"]
required = true
clean = git media clean %f
smudge = git media smudge %f
[filter "hawser"]
clean = git hawser clean %f
smudge = git hawser smudge %f
required = true
[color]
ui = auto
# [color "branch"]
# current = yellow bold
# local = green bold
# remote = cyan bold
#
# [color "diff"]
# meta = yellow bold
# frag = magenta bold
# old = red bold
# new = green bold
# whitespace = red reverse
#
# [color "status"]
# added = green bold
# changed = yellow bold
# untracked = red bold
[alias]
ls = log --pretty=format:"%C(yellow)%h%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate
ll = log --pretty=format:"%C(yellow)%h%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate --numstat
lds = log --pretty=format:"%C(yellow)%h\\ %ad%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate --date=short
ld = log --pretty=format:"%C(yellow)%h\\ %ad%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate --date=relative
# Force the use of SSH even on a HTTPS URL
# [url "[email protected]:"]
# insteadOf = https://github.com/
[include]
# For username / github token / etc
path = $HOME/.gitconfig.local
[filter "lfs"]
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
process = git-lfs filter-process
required = true
[user]
name = Claus Eggers Sørensen
email = [email protected]
[includeIf "gitdir:/Users"]
path = ~/.gitconfig-macos
# [includeIf "gitdir:/home"]
# path = ~/.gitconfig-linux