-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitconfig
32 lines (32 loc) · 1.17 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
[core]
excludesfile = /Users/mei/.gitignore_global
editor = nvim
attributesfile = /Users/mei/.gitattributes
[diff]
tool = nvimdiff
[difftool "nvimdiff"]
cmd = "nvim -R -d -c \"wincmd l\" -d \"$LOCAL\" \"$REMOTE\""
[mergetool "nvimdiff"]
cmd = "nvim -d -c \"4wincmd w | wincmd J\" \"$LOCAL\" \"$BASE\" \"$REMOTE\" \"$MERGED\""
[user]
name = mei
email = mei28aquarius@gmail.com
[init]
defaultBranch = main
[mergetool]
keepBackup = false
[credential]
helper = store
[pull]
rebase = false
[pager]
log = diff-highlight | less
show = diff-highlight | less
diff = diff-highlight | less
[alias]
lg = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative
lga = log --graph --all --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative
fixup = commit --amend -C HEAD
[filter "clean_ipynb"]
clean = jq --indent 1 --monochrome-output '. + if .metadata.git.suppress_outputs | not then { cells: [.cells[] | . + if .cell_type == \"code\" then { outputs: [], execution_count: null } else {} end ] } else {} end'
smudge = cat