-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitconfig
57 lines (52 loc) · 1.46 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
[user]
email = [email protected]
name = Lars Petter Hauge
[core]
editor = nvim
pager = delta
excludesfile = ~/.gitignore
[init]
defaultBranch = main
[color]
ui = true
[delta]
side-by-side = true
line-numbers = true
diff-so-fancy = true
navigate = true # use n and N to move between diff sections
map-styles = bold purple => syntax magenta, bold cyan => syntax blue
features = my-dark-theme zebra-dark
light = false # set to true if you're in a terminal w/ a light background color (e.g. the default macOS terminal)
[interactive]
diffFilter = delta --color-only
branch = true
[rebase]
autosquash = true
[merge]
conflictstyle = diff3
[credential]
helper = cache --timeout=3600
[push]
default = simple
autoSetupRemote = true
[diff]
colorMoved = default
tool = vimdiff
[difftool]
prompt = false
[alias]
# listing aliases
alias = !git config --get-regexp ^alias\\. | sed -e s/^alias\\.// -e s/\\ /\\ =\\ /
# misc
s = status
ls = log --color --graph --pretty=format:'%C(red bold)%h%Creset - %s %Cgreen(%cr) %C(bold blue)<%an>%Creset %C(yellow)%d%Creset' --abbrev-commit
lg = 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
# inspect last commit
sh = show HEAD
d = diff
ds = diff --staged
# finding file
f = "!git ls-files | grep -i"
[pull]
ff = only
rebase = true