-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitconfig
38 lines (38 loc) · 1.15 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
[push]
autoSetupRemote = true
[pull]
ff = only
[user]
name = Cristian Betivu
[core]
pager = delta
[interactive]
diffFilter = delta --color-only
[delta]
features = side-by-side line-numbers decorations
whitespace-error-style = 22 reverse
[delta "decorations"]
commit-decoration-style = bold yellow box ul
file-style = bold yellow ul
[diff]
tool = vimdiff
colorMoved = default
[merge]
summary = true
log = true
tool = vimdiff
conflictstyle = diff3
prompt = false
[rerere]
enabled = true
[submodule]
recurse = true
[alias]
lg = log --graph --pretty=tformat:'%Cred%h%Creset -%C(auto)%d%Creset %s %Cgreen(%an %ad)%Creset'
lr = log --walk-reflogs --pretty=tformat:'%Cred%h%Creset -%C(auto)%d%Creset %s %Cgreen(%an %ad)%Creset'
st = status --short
amend = commit --amend --no-edit --reset-author
wtl = worktree list
wta = worktree add
wtab = "!bash -ec 'if (( $# == 0)); then echo >&2 git wtab: 1 parameter expected; exit 2; fi; branch=$2; git worktree add \"$1\" $(git rev-parse ${branch:-master}) -b \"$1\"'"
wtar = "!bash -ec 'if (( $# != 1)); then echo >&2 git wtar: 1 parameter expected; exit 2; fi; git worktree add --guess-remote --track \"$1\" \"$1\"'"