feat: add gitconfig
config and scripts
This commit is contained in:
parent
f0129109cb
commit
ac12d3ea97
2
git/_deploy.sh
Normal file
2
git/_deploy.sh
Normal file
|
@ -0,0 +1,2 @@
|
|||
# Install git global config
|
||||
cp -f ./git/git/gitconfig /etc/gitconfig
|
2
git/_install.sh
Normal file
2
git/_install.sh
Normal file
|
@ -0,0 +1,2 @@
|
|||
# Install or upgrade pager
|
||||
curl -sS https://webi.sh/delta | sh
|
22
git/git/gitconfig
Normal file
22
git/git/gitconfig
Normal file
|
@ -0,0 +1,22 @@
|
|||
[core]
|
||||
pager = delta
|
||||
[init]
|
||||
defaultBranch = main
|
||||
[interactive]
|
||||
diffFilter = delta --color-only
|
||||
[merge]
|
||||
conflictstyle = diff3
|
||||
[alias]
|
||||
lg = log --color -graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%ar) %C(bold blue)<%an>%Creset' --abbrev-commit --branches
|
||||
[delta]
|
||||
navigate = true
|
||||
side-by-side = true
|
||||
colorMoved = true
|
||||
hyperlinks = true
|
||||
#hyperlinks-file-link-format = "vscode://file/{path}:{line}"
|
||||
syntax-theme = gruvbox-dark
|
||||
[filter "lfs"]
|
||||
clean = git-lfs clean -- %f
|
||||
smudge = git-lfs smudge -- %f
|
||||
process = git-lfs filter-process
|
||||
required = true
|
Loading…
Reference in a new issue