rydesun/.config/git/config
2023-05-11 12:54:21 +08:00

58 lines
1 KiB
Text

[user]
name = rydesun
email = rydesun@gmail.com
signingkey = rydesun@gmail.com
[log]
date = iso
[alias]
lg = log --oneline --abbrev=5 --graph --decorate --all -5
gl = lg
st = status -s
c = commit
b = branch
p = push
co = checkout
rb = rebase
ls = ls-files
d = diff --relative
ds = diff --staged --relative
s = show
[pull]
rebase = true
[credential]
helper = cache
[url "https://github.com"]
insteadOf = git://github.com
[core]
; Unicode文件名
quotepath = off
pager = delta
; https://github.com/samjwill/nvim-unception#working-with-git
editor = nvim --cmd 'let g:unception_block_while_host_edits=1'
; === delta配置 ===
[interactive]
diffFilter = delta --color-only
[delta]
; commit信息增加下划线
commit-decoration-style = bold ul
; 文件名以块状显示
file-style = bold black white
; 去掉文件名的下划线
file-decoration-style = none
; diff的配色
minus-style = syntax "#39180b"
minus-emph-style = normal "#734347"
plus-style = syntax "#1a2810"
plus-emph-style = normal "#406040"