-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgitconfig
More file actions
62 lines (62 loc) · 1.64 KB
/
gitconfig
File metadata and controls
62 lines (62 loc) · 1.64 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
51
52
53
54
55
56
57
58
59
60
61
62
[core]
autocrlf = false
excludesfile = ~/.gitignore_global
filemodes = true
fileMode = true
longpaths = true
pager = bat
quotePath = false
precomposeunicode = true
[http]
postBuffer = 524288000
[push]
default = simple
recurseSubmodules = on-demand
[pull]
rebase = false
[gc]
autoDetach = false
[format]
pretty = oneline
[color]
ui = true
[filter "lfs"]
clean = git lfs clean %f
smudge = git lfs smudge %f
required = true
[diff]
tool = nvim
guitool = neovide
[difftool]
prompt = false
keepBackup = false
[difftool "nvim"]
cmd = nvim -n -c "DiffviewOpen"
[difftool "neovide"]
cmd = neovide -- -n -c "DiffviewOpen"
[merge]
tool = nvim
guitool = neovide
[mergetool]
prompt = false
keepBackup = false
[mergetool "nvim"]
cmd = nvim -n -c "DiffviewOpen" "$MERGE"
[mergetool "neovide"]
cmd = neovide -- -n -c "DiffviewOpen" "$MERGE"
[mergetool "kdiff3-noauto"]
cmd = kdiff3 --L1 \"$MERGED (Base)\" --L2 \"$MERGED (Local)\" --L3 \"$MERGED (Remote)\" -o \"$MERGED\" \"$BASE\" \"$LOCAL\" \"$REMOTE\"
trustExitCode = true
[alias]
lg = log --pretty=format:'%C(yellow)%h %Cgreen%ad %Cblue%an<%ae> %Creset%s' --abbrev-commit --date=local --color --graph --decorate --all
ci = commit
co = checkout
st = status
br = branch
df = difftool --dir-diff
dg = difftool --gui --dir-diff
change-commits = "!f() { VAR1=$1; VAR='$'$1; OLD=$2; NEW=$3; echo \"Are you sure for replace $VAR $OLD => $NEW ?(Y/N)\";read OK;if [ \"$OK\" = 'Y' ] ; then shift 3; git filter-branch --env-filter \"if [ \\\"${VAR}\\\" = '$OLD' ]; then export $VAR1='$NEW';echo 'to $NEW'; fi\" $@; fi;}; f "
[difftool "bc3"]
trustExitCode = true
[mergetool "bc3"]
trustExitCode = true